Failed prop type: PaymentCardTextField: prop type `style` is invalid; it must be a function, usually from the `prop-types` package, but received `object`
See original GitHub issueBefore I have submitted the issue
The problem
I am getting the following warning in the debugger console:
Warning: Failed prop type: PaymentCardTextField: prop type
styleis invalid; it must be a function, usually from the
prop-typespackage, but received
object.
Environment
tipsi-stripe
version: 7.3.0- Last
tipsi-stripe
version where the issue was not reproduced (if applicable): 5.6.0 - iOS or Android: iOS
- OS version: 11.4
- React-Native version: 0.57.8
Code To Reproduce Issue (Good To Have)
<View
style={{
borderBottomWidth: 1,
borderColor: 'orange',
marginBottom: 5
}}
>
<PaymentCardTextField
style={{
borderBottomWidth: 1,
borderColor: 'red'
}}
numberPlaceholder={'4242 4242 4242 4242'}
expirationPlaceholder={'MM/YYYY'}
cvcPlaceholder={'CVC'}
disabled={false}
onParamsChange={this.handleFieldParamsChange}
/>
</View>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:8 (5 by maintainers)
Top Results From Across the Web
React: Prop type must be a function, but received object
Warning: Failed prop type: Results: prop type `leoInfo` is invalid; it must be a function, usually from the `prop-types` package, but received ` ......
Read more >Packaging and PropTypes - Fullstack React
The prop-types object exports a bunch of different types which we can use to define what type a component's prop should be. We...
Read more >Don't Call PropTypes Warning - React
PropTypes has moved into a different package since React v15.5. ... the code that implements PropType validation functions will be stripped in production....
Read more >ReactJS PropTypes - javatpoint
We can use propType to validate any data we get from the prop. But before using it, we have to import it. Add...
Read more >@prop | typegoose
Should act like the @index class decorator, but without options. ... If the PropType (Primitive / Array / Map) is different from what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found an alternative for
PaymentCardTextField
: react-native-credit-card-inputPlease make a release. There have been no releases since april.