How to use the jpush-react-native.checkTagBindState function in jpush-react-native

To help you get started, we’ve selected a few jpush-react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jpush / jpush-react-native / example / react-native-android / set_activity.js View on Github external
checkTag = () => {
		console.log("Checking tag bind state, tag: " + this.state.tag);
		JPushModule.checkTagBindState(this.state.tag, (map) => {
			if (map.errorCode === 0) {
				console.log("Checking tag bind state, tag: " + map.tag + " bindState: " + map.bindState);
			} else {
				console.log("Checking tag bind state failed, error code: " + map.errorCode);
			}
		});
	}
github jpush / jpush-react-native / example / react-native-iOS / set_activity.js View on Github external
checkTagBindState() {
		JPushModule.checkTagBindState('tag1', (result)=> {
			Alert.alert(JSON.stringify(result))
		})
	}