Skip to content

Commit

Permalink
Wrapping of TextInput works in iOS fixes #4 (#5)
Browse files Browse the repository at this point in the history
Set the container prop `pointerEvents="none"` for children (content) to allow touches to `TextInput` to flow through.
  • Loading branch information
mikaello authored and peacechen committed Aug 12, 2017
1 parent 5e3efcc commit b1456de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ export default class ModalSelector extends BaseComponent {
<View style={this.props.style}>
{dp}
<TouchableOpacity onPress={this.open}>
{this.renderChildren()}
<View pointerEvents="none">
{this.renderChildren()}
</View>
</TouchableOpacity>
</View>
);
Expand Down

0 comments on commit b1456de

Please sign in to comment.