Failed prop type: Invalid props.style key `0` supplied to `Text`
See original GitHub issueExceptionsManager.js:126 Warning: Failed prop type: Invalid props.style key `0` supplied to `Text`.
Bad object: {
"0": "A",
"1": "s",
"2": "a",
"3": "p",
"4": "-",
"5": "S",
"6": "y",
"7": "m",
"8": "b",
"9": "o",
"10": "l",
"color": "#ffffff",
"textAlign": "center",
"letterSpacing": 1,
"marginVertical": 9,
"marginHorizontal": 16,
"textTransform": "uppercase"
}
Valid keys: [
"display",
"width",
"height",
"start",
"end",
"top",
"left",
"right",
"bottom",
"minWidth",
"maxWidth",
"minHeight",
"maxHeight",
"margin",
"marginVertical",
"marginHorizontal",
"marginTop",
"marginBottom",
"marginLeft",
"marginRight",
"marginStart",
"marginEnd",
"padding",
"paddingVertical",
"paddingHorizontal",
"paddingTop",
"paddingBottom",
"paddingLeft",
"paddingRight",
"paddingStart",
"paddingEnd",
"borderWidth",
"borderTopWidth",
"borderStartWidth",
"borderEndWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"position",
"flexDirection",
"flexWrap",
"justifyContent",
"alignItems",
"alignSelf",
"alignContent",
"overflow",
"flex",
"flexGrow",
"flexShrink",
"flexBasis",
"aspectRatio",
"zIndex",
"direction",
"shadowColor",
"shadowOffset",
"shadowOpacity",
"shadowRadius",
"transform",
"transformMatrix",
"decomposedMatrix",
"scaleX",
"scaleY",
"rotation",
"translateX",
"translateY",
"backfaceVisibility",
"backgroundColor",
"borderColor",
"borderTopColor",
"borderRightColor",
"borderBottomColor",
"borderLeftColor",
"borderStartColor",
"borderEndColor",
"borderRadius",
"borderTopLeftRadius",
"borderTopRightRadius",
"borderTopStartRadius",
"borderTopEndRadius",
"borderBottomLeftRadius",
"borderBottomRightRadius",
"borderBottomStartRadius",
"borderBottomEndRadius",
"borderStyle",
"opacity",
"elevation",
"color",
"fontFamily",
"fontSize",
"fontStyle",
"fontWeight",
"fontVariant",
"textShadowOffset",
"textShadowRadius",
"textShadowColor",
"letterSpacing",
"lineHeight",
"textAlign",
"textAlignVertical",
"includeFontPadding",
"textDecorationLine",
"textDecorationStyle",
"textDecorationColor",
"textTransform",
"writingDirection"
]
in Text (at Text.tsx:35)
in Text (created by Context.Consumer)
in ThemedComponent (created by withTheme(Text))
in withTheme(Text) (at Button.tsx:282)
in RCTView (at Button.tsx:269)
in RCTView (at TouchableRipple/index.native.tsx:83)
in TouchableNativeFeedback (at TouchableRipple/index.native.tsx:70)
in TouchableRipple (created by Context.Consumer)
in ThemedComponent (created by withTheme(TouchableRipple))
in withTheme(TouchableRipple) (at Button.tsx:254)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at Surface.tsx:70)
in Surface (created by Context.Consumer)
in ThemedComponent (created by withTheme(Surface))
in withTheme(Surface) (at Button.tsx:244)
in Button (created by Context.Consumer)
in ThemedComponent (created by withTheme(Button))
in withTheme(Button) (at inviteMovie.js:195)
in RCTView (at inviteMovie.js:194)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at createAnimatableComponent.js:599)
in withAnimatable(Component) (at inviteMovie.js:115)
in InviteMovie (created by ConnectFunction)
in ConnectFunction (at navigationStore.js:441)
in StatelessWrapped (at SceneView.js:9)
in SceneView (at StackViewLayout.tsx:889)
in RCTView (at StackViewLayout.tsx:888)
in RCTView (at StackViewLayout.tsx:887)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewCard.tsx:106)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at screens.native.js:101)
in Screen (at StackViewCard.tsx:93)
in Card (at createPointerEventsContainer.tsx:95)
in Container (at StackViewLayout.tsx:975)
in RCTView (at screens.native.js:132)
in ScreenContainer (at StackViewLayout.tsx:384)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewLayout.tsx:374)
in PanGestureHandler (at StackViewLayout.tsx:367)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.tsx:104)
in RCTView (at Transitioner.tsx:267)
in Transitioner (at StackView.tsx:41)
in StackView (at createNavigator.js:80)
in Navigator (at createKeyboardAwareNavigator.js:12)
in KeyboardAwareNavigator (at createAppContainer.js:430)
in NavigationContainer (at Router.js:97)
in App (at Router.js:122)
in Router (at router.js:53)
in RouterComponent (created by ConnectFunction)
in ConnectFunction (at App.js:32)
in ThemeProvider (at Provider.tsx:21)
in RCTView (at PortalHost.tsx:128)
in Portal.Host (at Provider.tsx:17)
in Provider (at App.js:31)
in PersistGate (at App.js:30)
in Provider (at App.js:29)
in App (at renderApplication.js:40)
in RCTView (at AppContainer.js:101)
in RCTView (at AppContainer.js:119)
in AppContainer (at renderApplication.js:39)
My code :
<Button style={{ position: "absolute", bottom: 0, width: "100%", paddingVertical: 6 }} mode="contained" onPress={() => { if (this.props.fromPoll) { Actions.pop(); this.props.setPollMovie(true, this.state.movie); } else this.setState({ askForMessage: true }); }} > Skip </Button>
Verison :
“react-native-paper”: “^3.6.0”, “react”: “16.9.0”, “react-native”: “^0.61.5”,
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top Results From Across the Web
Failed prop type: Invalid props.style key `0` supplied to `Image ...
The <Card /> component is passing an array's element as a style's prop to Image. This is wrong. Try to set a width/height...
Read more >Invalid props.style key 'textAlign' supplied to 'View'-Reactjs
Coding example for the question Failed prop type: Invalid props.style key 'textAlign' supplied to 'View'-Reactjs.
Read more >Invalid Prop Types: Prop.Style Key Fontsize Supplied To View
Describe the bug Any input in either form field first throws the warning Warning: Failed prop type: Invalid prop value of type number...
Read more >Warning: Failed prop type: Invalid prop `children` supplied to ...
Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Typography)`, expected a ReactNode. */<Typography key={item.id}>
Read more >A brand new website interface for an even better experience!
Warning: Failed prop type: Invalid props.style key `color` supplied to `Icon`.
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 had this issue too, after recently upgrading from
2.16.0
to3.10.1
. I was able to resolve the issue using the fontConfig.This issue is arising in all Text, TextInput and Button. almost everywhere where I its using textual data