const androidWriteKey = “xxxxxxxxxxxxxxxxxxxxx”;
const iosWriteKey = “xxxxxxxxxxxxxxxxxxxxx”;
Segment.initialize({ androidWriteKey, iosWriteKey });
Fails with "Attempt to invoke interface method ‘abi28_0_0.com.facebook.react.bridge.ReadableMayKeySetIterator abi28_0_0.com.facebook.react.bridge.ReableMap.keySetIterator()’ on a null object reference.
Any ideas?
UPDATE - SORTED
That’s not the issue, the issue is a later line Expo.Segment.trackWithProperties(“Application Opened”), which is passing through null props. It should just be Expo.Segment.track(“Application Opened”). However, if you comment out the Segment.initialize , then the trackWithProperties doesn’t throw an error, I’m assuming that’s because there is an initialization check upfront.