Giter Site home page Giter Site logo

Comments (10)

r0b0t3d avatar r0b0t3d commented on May 27, 2024 1

Hi, Please try with Touchable from react-native-gesture-handler

import { TouchableOpacity } from 'react-native-gesture-handler';

from react-native-collapsible.

cveklica avatar cveklica commented on May 27, 2024

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.

r0b0t3d avatar r0b0t3d commented on May 27, 2024

@cveklica TextInput please try with the one from "react-native". I don't have any issue with it.

from react-native-collapsible.

cveklica avatar cveklica commented on May 27, 2024

@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.

r0b0t3d avatar r0b0t3d commented on May 27, 2024

@cveklica can you please try to run the example and see if it works?

from react-native-collapsible.

cveklica avatar cveklica commented on May 27, 2024

yes, but textInput is in tab view, not in main. In main view is textInput inside collapsible view

from react-native-collapsible.

r0b0t3d avatar r0b0t3d commented on May 27, 2024

can you please make a minimal reproduced repo? I can have a look on it

from react-native-collapsible.

cveklica avatar cveklica commented on May 27, 2024

Example works good, problem was with my custom component. Thank you for your answers

from react-native-collapsible.

r0b0t3d avatar r0b0t3d commented on May 27, 2024

oh, nice to hear that @cveklica . Thanks for using this lib :)

from react-native-collapsible.

Amazing1974 avatar Amazing1974 commented on May 27, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.