I am using ‘@amplitude/analytics-react-native’ library ( Version 1.4.7 ) inside react native mobile app ( Version 0.71 ) and other events like track is working and going to amplitude.
But facing issue with identify event to send user properties on amplitude and below is the code that I am using to set user properties on amplitude. Can anyone please help me!
import * as amplitude from '@amplitude/analytics-react-native';
import { Identify, identify } from '@amplitude/analytics-react-native';
const defaultInstance = amplitude.createInstance();
defaultInstance.init('your_amplitude_key');
const identifyObj = new Identify();
identifyObj.set('location', 'LAX')
identify(identifyObj);