-
Notifications
You must be signed in to change notification settings - Fork 526
Android: PaymentCardTextField has no propType for nativeProp CreditCardForm.accessibilityLabel #127
Comments
@darrenfurr please, explain your use case. |
@isnifer, Everything is working great on iOS. I just took the same project & ran I'm not even using PaymentCardTextField. I use Thanks for the help. |
@darrenfurr looks like, we don't need export |
I commented the export |
I stand corrected, commenting both the import & export out - then having RN monitor the folder in node_modules fixed it.
|
@darrenfurr yeah, the second one is correct. It's ok as a workaround. But we need to fix it. |
@darrenfurr Hi there, is there any changes? |
ran into the same issue will try to follow the workaround |
Also hitting this issue, tipsi: 4.5.2, rn: 0.42.3 - workaround does work, but it's less than ideal. |
@isnifer - Sorry, I used the workaround & haven't updated to the latest version to test. |
yes, confirming the workout wworks for me on RN 0.41 but as @fr1n63 mentions it is not ideal as you must remember to modify these files in the |
Just to add - I'm having issues with the popups in android, so have tried using PaymentCardTextField directly and the OP issue appears to be a valid one, so any sign of an update? Now on tipsi 4.6.1. |
I'm actually trying to use Here's the full error output:
|
I've found a solution. I edited the file const NativePaymentCardTextField = requireNativeComponent('CreditCardForm', PaymentCardTextField, {
nativeOnly: {
borderColor: true,
borderWidth: true,
cornerRadius: true,
textColor: true,
fontFamily: true,
fontWeight: true,
fontStyle: true,
fontSize: true,
enabled: true,
onChange: true,
// Fix "PaymentCardTextField has no propType for native prop" errors.
pointerEvents: true,
accessible: true,
accessibilityLabel: true,
accessibilityComponentType: true,
accessibilityLiveRegion: true,
accessibilityTraits: true,
importantForAccessibility: true,
testID: true,
renderToHardwareTextureAndroid: true,
shouldRasterizeIOS: true,
onLayout: true,
onAccessibilityTap: true,
onMagicTap: true,
collapsable: true,
needsOffscreenAlphaCompositing: true,
},
}) This was based on the comment facebook/react-native#3685 (comment). I copy/pasted the actual fields from the If you're applying this solution locally, don't forget to close the React Native packager and then restart it using |
Any update on this? Seems like it's a pretty easy fix, would be good to get a new release out that resolves this issue. |
@jordanmkoncz please, check 5.3.0. Sure, there is no problem anymore |
Ran into this exception on Android 6.0.0, API 23
PaymentCardTextField has no propType for nativeProp CreditCardForm.accessibilityLabel of native type
String
RN 0.42.3
tipsi: 3.7.1
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: