How to use the jpush-react-native.addTags 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
addTag = () => {
		console.log("Adding tag: " + this.state.tag);
		JPushModule.addTags(this.state.tag.split(","), (map) => {
			if (map.errorCode === 0) {
				console.log("Add tags succeed, tags: " + map.tags);
			} else {
				console.log("Add tags failed, error code: " + map.errorCode);
			}
		});
	}
github jpush / jpush-react-native / example / react-native-iOS / push_activity.js View on Github external
JPushModule.addnetworkDidLoginListener(() => {
          console.log('连接已登录')
          JPushModule.addTags(['dasffas'], (result)=> {
            Alert.alert('addTags success:' + JSON.stringify(result))
          })
        })
github jpush / jpush-react-native / example / react-native-iOS / set_activity.js View on Github external
addTag() {
		JPushModule.addTags([this.state.tag], (result)=> {
			Alert.alert(JSON.stringify(result))
		})
	}