SimformSolutionsPvtLtd / react-native-story-view

A React Native component to show image and video stories ✨ 🎖
MIT License
231 stars 33 forks source link

Custom View Cannot Click (No response when Click CustomView) #69

Closed sayyidisal closed 7 months ago

sayyidisal commented 10 months ago

Hi there, I create customview like this :

`renderCustomView={() => ( <Pressable onPress={() => { console.log('Pressed); }} style={{ position: 'absolute', top: 40, right: 50, }}>

            </Pressable>
          )}`

But nothing happen when I press the Icon. Any solution for this case?

Package.json:

"react-native-gesture-handler": "2.9.0",
"react-native-reanimated": "^2.14.4",
"react-native-story-view": "^0.0.2",
"react-native-video": "^5.2.1",
"react-native-video-cache-control": "^1.2.0",
sagar-simformsolutions commented 9 months ago

Hi there, I create customview like this :

renderCustomView={() => ( <Pressable onPress={() => { console.log('Pressed); }} style={{ position: 'absolute', top: 40, right: 50, }}> <FontAwesome5Icon name='menu-horizontal' size={20} color='white'/> </Pressable> )}

But nothing happen when I press the Icon. Any solution for this case?

Package.json:

"react-native-gesture-handler": "2.9.0",
"react-native-reanimated": "^2.14.4",
"react-native-story-view": "^0.0.2",
"react-native-video": "^5.2.1",
"react-native-video-cache-control": "^1.2.0",

@sayyidisal

Would you kindly supply a screen capture or a code sample for the parent's view component?

I'm unable to replicate this problem.

"Absolute" most likely interferes with the touchable portion of the screen.

I couldn't help but notice the console.log syntax is incorrect; I assume there is a typo.