Giter Club home page Giter Club logo

Comments (5)

BartoszKlonowski avatar BartoszKlonowski commented on September 27, 2024 4

Hello @toshits, thank you for reaching out!
Another option would also be to use <View/> but conditionally render the <Slider/> or the empty placeholder depending on your scenario to deal with layout of the whole screen in your app.
Let me know if you require any assistance.

And thank you so much @MattinNajafi for taking the time of yours to reply 💪

from react-native-slider.

BartoszKlonowski avatar BartoszKlonowski commented on September 27, 2024 4

@toshits I implemented the showing/hiding Slider on the screen in the repro app - please feel free to check it and use it as you'd like to. I also present the potential solution on the recording below:

Issue518-HidingSlider.mp4

Let me know please if this solves your issue.

from react-native-slider.

MattinNajafi avatar MattinNajafi commented on September 27, 2024

Put is inside a <View> and add display:'none' to the <View> should work.

from react-native-slider.

toshits avatar toshits commented on September 27, 2024

I did that, It is inside a but the thumb & progress bar is still visible after making that display none, and it also gets misaligned from its original position when the display is none. Misalign feels normal as some of the tags may actually hide which causes misaligning.
Note: - The has position absolute.
The solution I used:- Made the transformY: -2000

from react-native-slider.

BartoszKlonowski avatar BartoszKlonowski commented on September 27, 2024

Let me close this as answers were already given and author has no more comments.
@toshits In case of any more question please feel free to reopen and/or comment.
Thank you!

from react-native-slider.

Related Issues (20)

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.