#James786 - RN CLI
1 messages ยท Page 1 of 1 (latest)
wait i can send you error image
for ios can you tell me i can just install yarn add @stripe/stripe-react-native
this or do any configration?
??
Can you please send the error message? I am not sure I understand your question still
@steady swift yarn add @stripe/stripe-react-native should be the command to run to initially install our RN SDK. Can you try running that and send me the output that you get?
Can you send me the full text of that output? It looks like some of the initial error is cut off in that screenshot
We can't really do much with photos of your screen
Can you try and share the raw text here instead as a quote or code between three `
@thick basin please solve this issue i am stuck here from a week ago can't find any solution
Than someone recommend your support
Okay
CompileSwift normal x86_64 /Users/Eysa/FruiteMarketApp/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Localization/String+Localized.swift (in target 'StripeCore' from project 'Pods')
@calm rock check
that's just one line of text ๐
Are you on an Intel or Apple Silicon Mac?
for the first error someone on my team said https://github.com/facebook/react-native/issues/6799 might help
for the iOS issue they said https://stackoverflow.com/questions/72645963/react-native-ios-requested-but-did-not-find-extension-point-with-identifier-xcod might help
My Xcode is already Updated
I have update it yesterday
And my version is Xcode version is 13.4.2
did you specifically do the exact command outlined in that answer? Updating XCode and command line tools are separate steps
Yes same
/Users/Eysa/FruiteMarketApp/ios/Pods/StripeCore/StripeCore/StripeCore/Source/API Bindings/StripeAPI.swift:90:47: 'maestro' is only available in iOS 12.0 or newer
When i open project in Xcode this error shows
but did you run the exact commands mentioned or did you just open XCode?
13.4.2 doesn't exist per https://developer.apple.com/documentation/xcode-release-notes/xcode-13_4-release-notes either
Exact commands
what version of iOS are you targeting?
Are you on an Intel or Apple Silicon Mac?
also can you reply to this?
I am on a Intel MacBook 2017
thanks
Can you look at node_modules/react-native/scripts/react_native_pods.rb
is there something referencing iOS 11 in there?
Okay I check
did you find anything?
No there is nothing related that
Can you share the whole file here?
๐ stepping in here as koopa had to step away. Can you share your /react_native_pods.rb file?
Thanks, one moment
okay
So it does look like your deployment target is 11 in that file. ```def __apply_Xcode_12_5_M1_post_install_workaround(installer)
Flipper podspecs are still targeting an older iOS deployment target, and may cause an error like:
"error: thread-local storage is not supported for the current target"
The most reliable known workaround is to bump iOS deployment target to match react-native (iOS 11 now).
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# ensure IPHONEOS_DEPLOYMENT_TARGET is at least 11.0
deployment_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f
should_upgrade = deployment_target < 11.0 && deployment_target != 0.0
if should_upgrade
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end```
That needs to be set to 12.0
Did you look into clearing your iOS-related caches? https://github.com/stripe/stripe-react-native/issues/970#issuecomment-1178158004 references that this may be necessary after bumping to 12.0
/Users/Eysa/FruiteMarketApp/ios/FruitMarketApp/AppDelegate.m:50:49: No visible @interface for 'RCTBundleURLProvider' declares the selector 'jsBundleURLForBundleRoot:fallbackResource:'
now this error
i have also upgrade react native 0.69.3
Yep okay that aligns with the above issue then
There is a fix in that issue that I'd recommend trying
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
i have tryed... that is also solved..
now this error came
Sounds like you need to migrate to exporting from deprecated-react-native-prop-types
I'm not familiar with that but looks like ViewPropTypes was deprecated starting in 0.69
yes but without 0.69 stripe is giving erros
may i try android now?
may i downgrade react native package?
to 0.68?
Are you actually using ViewPropTypes in your code?
If not, the above should just be a warning, no
?
It shouldn't actually be breaking your app afaik
no i am not using it
it is error my app is not start
and also i got error on ios
on react native navigation
Yeah I don't think that warning should be crashing your app. What is the other error you see?
ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
ERROR TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[6], "./redux/routes").registerScreens')
these two on IOS
Configure project :react-native-navigation
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
Task :react-native-navigation:compileReactNative63DebugKotlin FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
this one on androud
Okay all of those are issues with other dependencies in your app that you need to debug. I'd recommend googling for ways that others have worked around them. Otherwise, you may want to start with a fresh project and add your needed dependencies one by one and build each time so that you aren't hitting these errors from older dependencies mixing with newer ones.
hm right... and when i solve these all.. than i can connect you on this thread for integration with javascript not typescript
Yep someone will be around to help with any questions you have with integrating the Stripe pieces!