File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,15 @@ type PropsType = {
1414 children ?: any ,
1515 borderless ?: boolean ,
1616 style ?: any ,
17+ containerStyle ?: any ,
1718}
1819export const Touchable = ( {
1920 children,
2021 style,
2122 highlight = true ,
2223 borderless = false ,
2324 onPress = ( ) => { } ,
25+ containerStyle,
2426 ...props
2527} : PropsType ) => {
2628 // The child <View> is required; the Touchable needs a View as its direct child.
@@ -34,7 +36,12 @@ export const Touchable = ({
3436 ? { underlayColor : '#d9d9d9' }
3537 : { activeOpacity : 0.65 }
3638 return (
37- < Component onPress = { onPress } { ...innerProps } { ...props } >
39+ < Component
40+ onPress = { onPress }
41+ { ...innerProps }
42+ style = { containerStyle }
43+ { ...props }
44+ >
3845 { content }
3946 </ Component >
4047 )
@@ -48,6 +55,7 @@ export const Touchable = ({
4855 < TouchableNativeFeedback
4956 onPress = { onPress }
5057 background = { background }
58+ style = { containerStyle }
5159 { ...props }
5260 >
5361 { content }
You can’t perform that action at this time.
0 commit comments