Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

ExpoKit: "Native Module cannot be null" error after installing expo-in-app-purchase

$
0
0

I'm currently running an Expo app that was recently ejected to ExpoKit. It has been working as expected up until I installed expo-in-app-purchases from https://docs.expo.io/versions/latest/sdk/in-app-purchases like so:

npm i expo-in-app-purchases
cd ios
pod install

I then import the module in one of my app files like so:

import * as InAppPurchases from 'expo-in-app-purchases';

When I try to run the app on the Expo client, I get the following error: Error message

And When I try to build the app on XCode, I get the following build error: "Use of undeclared identifier"

I tried linking the package using react-native link but it did not fix the issue. I also tried removing node_modules and re-installing them along with pod update && pod install, but the issue persists.

Any help is appreciated!

Here are package.json dependencies:

"expo": "^33.0.0",
    "expo-constants": "^5.0.1",
    "expo-font": "^5.0.1",
    "expo-in-app-purchases": "^6.0.0",
    "expo-linear-gradient": "^5.0.1",
    "expokit": "^33.0.4",
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
    "react-native-unimodules": "^0.4.2",
    "react-navigation": "^3.11.1",
    "react-redux": "^7.1.0",
    "redux": "^4.0.4",
    "socket.io-client": "^2.1.1"

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>