Open j-nolan opened 7 years ago
Hello,
It seems like the cancelButtonStyle prop is passed in two components:
cancelButtonStyle
<Animated.View>
<Text>
This causes warnings when we uses style properties that are not compatible with bot <Animated.View /> and `.
<Animated.View />
Example:
<SearchBar cancelButtonStyle={{ fontSize: 20 }} />
Will show a warning:
Warning: Failed prop type: Invalid props.style key fontSize supplied to RCTView.
fontSize
RCTView
My suggestion would be to make two new props (cancelButtonViewStyle and cancelTextButtonStyle) to customize and <Text>. The cancelButtonStyle should throw a deprecation warning. This would be backward compatible.
cancelButtonViewStyle
cancelTextButtonStyle
I'd be happy to make a PR if this makes sense
@j-nolan Yes i am, use cancleButtonStyle to both View, Text L348 So impossible to using fontX props in cancleButtonStyle
cancleButtonStyle
View, Text
fontX
Hello,
It seems like the
cancelButtonStyle
prop is passed in two components:<Animated.View>
at line 365<Text>
at line 372This causes warnings when we uses style properties that are not compatible with bot `.
<Animated.View />
andExample:
Will show a warning:
My suggestion would be to make two new props ( and
cancelButtonViewStyle
andcancelTextButtonStyle
) to customize<Text>
. ThecancelButtonStyle
should throw a deprecation warning. This would be backward compatible.I'd be happy to make a PR if this makes sense