Skip to content

Instantly share code, notes, and snippets.

@tgoldenberg
Created February 9, 2016 13:13
Show Gist options
  • Select an option

  • Save tgoldenberg/a9dcb6a5a2f873a92715 to your computer and use it in GitHub Desktop.

Select an option

Save tgoldenberg/a9dcb6a5a2f873a92715 to your computer and use it in GitHub Desktop.
RN Index file
import React from 'react-native';
import DeviceInfo from 'react-native-device-info';
let clientId = DeviceInfo.getUniqueID();
class gita extends React.Component{
componentDidMount(){
NativeModules.AnalyticsHelper.identify(clientId);
}
_login(){
NativeModules.AnalyticsHelper.login(clientId);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment