Comments (10)
Hi, Please try with Touchable from react-native-gesture-handler
import { TouchableOpacity } from 'react-native-gesture-handler';
from react-native-collapsible.
that works, thanks 😄
but what about TextInput? I'm making search bar. I added it also from 'react-native-gesture-handler' but not working
from react-native-collapsible.
@cveklica TextInput please try with the one from "react-native". I don't have any issue with it.
from react-native-collapsible.
@cveklica TextInput please try with the one from "react-native". I don't have any issue with it.
Tried everything, none is working. Only way I managed to do it is with ref and wrapping it iside TouchableOpacity. Here is example (try clicking on textInput to see it's not reacting), please tell me what am I doing wrong
<CollapsibleContainer>
<CollapsibleHeaderContainer>
<StickyView pointerEvents="box-none">
<TextInput ref={ref}/>
<TouchableOpacity
onPress={() => {
console.log('aaaaaaa');
ref.current.focus();
}}>
<View height="50px" color='green'></View>
</TouchableOpacity>
</StickyView>
<View height="50px" color="purple" pointerEvents="none" />
</CollapsibleHeaderContainer>
<CollapsibleFlatList
data={Array(10)}
keyExtractor={(item, index) => index}
renderItem={({item, index}) => (
<View height="150px" color={index % 2 === 0 ? 'blue' : 'red'}>
<Text>Hello</Text>
</View>
)}
/>
</CollapsibleContainer>```
from react-native-collapsible.
@cveklica can you please try to run the example and see if it works?
from react-native-collapsible.
yes, but textInput is in tab view, not in main. In main view is textInput inside collapsible view
from react-native-collapsible.
can you please make a minimal reproduced repo? I can have a look on it
from react-native-collapsible.
Example works good, problem was with my custom component. Thank you for your answers
from react-native-collapsible.
oh, nice to hear that @cveklica . Thanks for using this lib :)
from react-native-collapsible.
Hi, Please try with Touchable from
react-native-gesture-handler
import { TouchableOpacity } from 'react-native-gesture-handler';
it works but when press touch button on StickView, it also trigger touch button in flatlist under the StickView.
I want to make it works only on stickview. can you help me please?
from react-native-collapsible.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-collapsible.