-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.../Components/TextInput/TextInputState Types do not exist (likely other Base components too) #28
Comments
The library won't work directly and will need to be ported to work with open-native. Can you explain why you are using @stripe/stripe-react-native instead of nativescript-stripe library? |
@ammarahm-ed thanks for responding. I had attempted to use Stripe's official RN lib as:
What kind of porting do you expect would be needed? The TextInputState etc - this I believe should be added to open-native as it would be beneficial to all libs/projects? |
Yup, it seems the lib can be ported. But will need to write the JS side, especially the components which are currently react ones. Porting them to NativeScript ones would make it work. It will require something like what I have done in my nativescript-webview library. https://github.com/ammarahm-ed/nativescript-webview/blob/main/packages/nativescript-webview/index.ts. You have to replicate 1:1 what they do in a react component. For example: https://github.com/stripe/stripe-react-native/blob/master/src/components/CardForm.tsx will need to be something like Once ported, it will require some maintenance based on changes in |
As per title,
@open-native/core/Libraries/Components/TextInput/TextInputState
do not seem to exist (likely other Base components too).This is reproducible by installing @open-native as per the docs, and adding
@stripe/stripe-react-native
Details / logs spoiler
Also, once
@stripe/stripe-react-native
had been manually added to the list of entries in webpack's babel config, the following additional issue has been found:Full details/log for 2nd issue spoiler
For understanding, this is in a NativeScript app running on Vue 3
Any suggestions will be highly appreciated!
The text was updated successfully, but these errors were encountered: