#James786 - RN CLI

1 messages ยท Page 1 of 1 (latest)

thick basin
#

Hello, what is the error message that you are seeing?

steady swift
#

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?

#

??

thick basin
#

Can you please send the error message? I am not sure I understand your question still

thick basin
#

@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?

steady swift
#

Okay

#

I send

#

On Android

#

I have install and simple run app

thick basin
#

Can you send me the full text of that output? It looks like some of the initial error is cut off in that screenshot

steady swift
#

Okay

#

Now i am increasing compilesdk version after that i send

#

These error on ios

calm rock
#

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 `

steady swift
#

@thick basin please solve this issue i am stuck here from a week ago can't find any solution

#

Than someone recommend your support

steady swift
#

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

calm rock
#

that's just one line of text ๐Ÿ˜…

#

Are you on an Intel or Apple Silicon Mac?

steady swift
#

My Xcode is already Updated

#

I have update it yesterday

#

And my version is Xcode version is 13.4.2

calm rock
#

did you specifically do the exact command outlined in that answer? Updating XCode and command line tools are separate steps

steady swift
#

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

calm rock
#

but did you run the exact commands mentioned or did you just open XCode?

steady swift
#

Exact commands

calm rock
#

what version of iOS are you targeting?

#

Are you on an Intel or Apple Silicon Mac?
also can you reply to this?

steady swift
#

I am on a Intel MacBook 2017

calm rock
#

thanks

steady swift
#

12.0 ios

#

And i am running app on 15

calm rock
#

Can you look at node_modules/react-native/scripts/react_native_pods.rb

#

is there something referencing iOS 11 in there?

steady swift
#

Okay I check

calm rock
#

did you find anything?

steady swift
#

No there is nothing related that

calm rock
#

Can you share the whole file here?

steady swift
#

project file?

#

or which file

tawny hamlet
#

๐Ÿ‘‹ stepping in here as koopa had to step away. Can you share your /react_native_pods.rb file?

steady swift
#

okay

tawny hamlet
#

Thanks, one moment

steady swift
#

okay

tawny hamlet
#

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

steady swift
#

same error

#

still ๐Ÿ˜ฆ

tawny hamlet
steady swift
#

/Users/Eysa/FruiteMarketApp/ios/FruitMarketApp/AppDelegate.m:50:49: No visible @interface for 'RCTBundleURLProvider' declares the selector 'jsBundleURLForBundleRoot:fallbackResource:'

#

now this error

steady swift
#

i have also upgrade react native 0.69.3

tawny hamlet
#

Yep okay that aligns with the above issue then

#

There is a fix in that issue that I'd recommend trying

steady swift
#

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

tawny hamlet
#

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

steady swift
#

yes but without 0.69 stripe is giving erros

#

may i try android now?

#

may i downgrade react native package?

#

to 0.68?

tawny hamlet
#

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

steady swift
#

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

tawny hamlet
#

Yeah I don't think that warning should be crashing your app. What is the other error you see?

steady swift
#

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

#

this one on androud

tawny hamlet
#

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.

steady swift
#

hm right... and when i solve these all.. than i can connect you on this thread for integration with javascript not typescript

tawny hamlet
#

Yep someone will be around to help with any questions you have with integrating the Stripe pieces!