Shopify / checkout-sheet-kit-react-native

Shopify's Checkout Sheet Kit for React Native - simplifying the process of adding checkout to your native apps.
https://shopify.dev/docs/custom-storefronts/mobile-apps
MIT License
30 stars 3 forks source link

Error while running this same package code into React native Expo #81

Closed Manni-tech closed 4 months ago

Manni-tech commented 4 months ago

image

"Cannot read property 'Version' null ".

I have attached the screenshot of the error above.

I am using the same code as described in the read me file the only difference is that I am using React native expo. rest all is same.

Need to resolve this ASAP

markmur commented 4 months ago

Hey @Manni-tech 👋

You should be able to get the CheckoutSheetKit to work in Expo by pre-compiling the native code.

# Install the native module
yarn add @shopify/checkout-sheet-kit

# Compile native iOS code and run the app
npx expo run:ios

You should see the module being compiled for your app:

image