React-native-gesture-handler: Touchable not allow use array of styles

Created on 2 Mar 2019  路  5Comments  路  Source: software-mansion/react-native-gesture-handler

Hello, just test 1.1.0 in our project

import { TouchableOpacity } from 'react-native-gesture-handler'; 
...
 <TouchableOpacity
   onPress={onPress}
   style={[styles.touchable, style]}
 />

not work as expected (in RN Touchable work)

All 5 comments

You have imported wrong class TouchableOpacity it is not a class from react-native-gesture-handler you have to use
import { TapGestureHandler } from 'react-native-gesture-handler';

or

import { TouchableOpacity } from 'react-native';

Ah ok Sorry I don't know that please can you take a view for my issue may you can help me?
https://github.com/kmagiera/react-native-gesture-handler/issues/485

@fouad1994 as i understand this is not issue, post it on stackoverflow with your code - more faster way to make your code work as expected))

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

enahum picture enahum  路  4Comments

muhaimincs picture muhaimincs  路  3Comments

jacobrosenskold picture jacobrosenskold  路  3Comments

neiker picture neiker  路  3Comments

brunolemos picture brunolemos  路  3Comments