[0.46.1] TextInput wrapt in touchable, will led touchable stop working
See original GitHub issueIs this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
Yes
Environment
react-native -v
: react-native: 0.46.1node -v
: v8.1.1npm -v
: 5.1.0
Then, specify:
- Target Platform (e.g. iOS, Android): iOS
- Development Operating System (e.g. macOS Sierra, Windows 10): macOS
- Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Xcode
Expected Behavior
<TouchableWithoutFeedback onPress={()=>{ //function was working here in 0.45 }>
<View style={styles.inputContainer}>
<TextInput
editable={false}
ref={component => this._input = component}
placeholder='Text Input'/>
<TouchableOpacity
onPress={() => {
//function only working here now in 0.46
}}>
<View>
<Text>Button</Text>
</View>
</TouchableOpacity>
</View>
</TouchableWithoutFeedback>
Actual Behavior
The source code above was working perfectly in 0.45, but after I upgrade to 0.46 is not working. However wrapt Image or Text is working fine.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:25 (2 by maintainers)
Top Results From Across the Web
React Native Elements - Wrapping a touchable opacity around ...
I am having a very peculiar issue with React Native Elements Text Input along with using touchable opacity. import ...
Read more >types/react-native/index.d.ts - UNPKG
1190, * If `true`, allows TextInput to pass touch events to the parent component. 1191, * This allows components to be swipeable from...
Read more >Dependencies | @boardroom/aave | npm | Open Source Insights
arrow_right @boardroom/base. 7.1.0‑alpha.0 Notes Relation Licenses Dependenc...
Version 7.1.0‑alpha.0 Published
arrow_right @graphql‑tools/merge. 6.2.17 Notes Relation Licenses Dependenc...
Version 6.2.17 Published Description
Read more >https://packages.debian.org/de/stretch/allpackages...
It can be used to monitor and control circuslinux (1.0.3-33+b1) Clowns are ... not unlike GNU libiconv cl-base64 (3.3.4-1) Common Lisp package to...
Read more >Aquatic Effects Monitoring Program
The scope of work for the 2021 AEMP included the following: •. Collect surface water samples at AEMP locations for laboratory analysis of ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A temporary fix that works for me is to wrap the
TextInput
in aView
withpointerEvents
set tonone
.That is:
This is working for me right now on RN 0.47.1.
@bermann @ilonashub setting pointerEvents to
box-only
makes it work withTouchableWithoutFeedback