#talha_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1381986609699753994
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, what is the actual error you're encountering during install?
Hello I can't send the error cuz the limit
There must be a key snippet at the start or end thats specific to the actual issue. Most likely this is not Stripe specific if it occurs during pod install though
Yes I am getting the error when installing pod via pod install command
UnsupportedModulePropertyParserError: Module NativeStripeSdkModule: TypeScript interfaces extending TurboModule must only contain 'FunctionTypeAnnotation's. Property 'onConfirmHandlerCallback' refers to a 'TSTypeReference'.
at throwIfModuleTypeIsUnsupported (/Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/error-utils.js:163:11)
at buildPropertySchema (/Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/parsers-commons.js:472:3)
at /Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/parsers-commons.js:705:24
at guard (/Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/utils.js:26:14)
at /Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/parsers-commons.js:702:14
at Array.map (<anonymous>)
at buildModuleSchema (/Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/parsers-commons.js:699:6)
at /Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/parsers-commons.js:522:9
at guard (/Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/utils.js:26:14)
at buildSchemaFromConfigType (/Users/innovador/Documents/GitHub/SoulWisper/node_modules/@react-native/codegen/lib/parsers/parsers-commons.js:521:22) {
nodes: [ undefined ]
}
This appears to be a broader React Native + TurboModule issue. This other example of a similar shaped error seems like it could be related to the RN codegen library, since that part looks like your error too.
https://github.com/rnmapbox/maps/issues/3812
Ok thanks I will look into this
I'd also suggest you try running the example app to see if you encounter this error there too: https://github.com/stripe/stripe-react-native/blob/master/CONTRIBUTING.md#running-the-example-app
I'm not deeply familiar with Turbo Modules, but it looks like this was introduced as part of the changes with RN 76: https://reactnative.dev/docs/0.76/turbo-native-modules-introduction
(it doesnt appear if you go back to v75)
Lastly, you said:
I'm still unable to resolve a
pod installfailure when integrating@stripe/stripe-react-native@0.47.1with React Native 0.74.2.
It looks like that version ofstripe-react-nativerequires RN 78+
https://github.com/stripe/stripe-react-native/blob/v0.47.1/package.json#L61
"react-native": "^0.78.0",
Probably becuase of the TurboModules support
so i would suggest trying your app with RN 78+, or using an older version of stripe-react-native
It looks like version 0.42.0 chould be compatible: https://github.com/stripe/stripe-react-native/blob/v0.42.0/package.json#L61
"react-native": "0.69.12",
though that's not specified as a range, so hard to say
Yes I mentioned that my react native version is 0.74.2 so I downgraded the stripe version now it's working
Fantastic!