Possible Unhandled Promise Rejection (id: 0): TypeError: null is not an object (evaluating '_reactNativeReferrer.default.getReferrer')
Opened this issue · 3 comments
Hey! I have added the Usage code that you have put in ReadME but I am getting the following error:
06-24 19:22:15.407 15144 15248 W ReactNativeJS: Possible Unhandled Promise Rejection (id: 0): 06-24 19:22:15.407 15144 15248 W ReactNativeJS: TypeError: null is not an object (evaluating '_reactNativeReferrer.default.getReferrer')
Any idea what would be causing this?
RN code:
const referer = await RNReferrer.getReferrer();
Issue Resolved.
Please Update the first point in README. It says
Open up android/app/src/main/java/[...]/MainActivity.java
Add import com.jdc.reactlibrary.RNReferrerPackage; to the imports at the top of the file
Add new RNReferrerPackage() to the list returned by the getPackages() method
Please change this to MainApplication.java
@sakina1403 sorry for the late answer and thanks for the warning, I ll do that asap
How to do this in expo app