Comments (5)
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.
@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.
Put is inside a <View>
and add display:'none'
to the <View>
should work.
from react-native-slider.
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.
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)
- property "disabled" doesn't work on Android (4.4.2) HOT 2
- Slider with steps indicator, custom thumb component and more to come... HOT 7
- seekTo() make position back to 0
- Documentation should be kept in GH Pages instead of README.
- When maximumValue changed value returns to last "clicked" position on Android
- How to use Tap in Android? HOT 2
- useState callback do not execute inside onSlidingComplete using tap. HOT 1
- Custom thumb image in Android becomes huge in contrary of iOS which is the the requested size HOT 2
- Clarification on `onValueChange` Behavior Across Platforms HOT 2
- lowerLimit for web HOT 1
- Wrong in Task :react-native-community_slider:compileReleaseJavaWithJavac FAILED
- Issue with Thumb Positioning in Web Implementation
- onValueChange triggers an extra time after onSlidingCompleted on Android HOT 2
- Android: StackOverflow when `lowerLimit` is greater than `upperLimit` (and, on some devices, when the slider first loads) HOT 3
- Customize Thumb component HOT 1
- update the targetSdk version
- StepMarker is not a prop at least on index.d.ts how to add a custom step marker? HOT 6
- trackStyle HOT 1
- trackStyle and thumbStyle HOT 2
- Callback for component `RNCSlider` HOT 4
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-slider.