wcandillon / can-it-be-done-in-react-native

⚛️ 📺 Projects from the “Can it be done in React Native?” YouTube series
https://www.youtube.com/wcandillon
MIT License
4.06k stars 1.31k forks source link

Instagram Stories: Text Input is not tappable #61

Open varunrau opened 5 years ago

varunrau commented 5 years ago

Tapping on the TextInput in the Story doesn't do anything. It seems like the ScrollView is not propagating touches to the TextInput in the Story component.

Is there a way to allow the scrollview to allow the TextInput to receive the touch and respond to the scroll?

moxorama commented 4 years ago

I've moved Animated.View inside ScrollView and it works

<Animated.ScrollView ...>
  <Animated.View

     style={{ height: storiesHeight, width, transform: [{ translateX: x }] }}>
     {this._renderStories()}
  </Animated.View>
</Animated.ScrollView>