Giter VIP home page Giter VIP logo

Comments (4)

nuttylord avatar nuttylord commented on July 28, 2024

I am having a similar issue, with a different use case whereby i want to effect the value state from a different component so on and so forth.

In your case though i can think of the idea of going to node_modules/react-native-slider/src/Slider.js and editing the file to make the state.value change from 0 to 1 a certain amount of time after sliding it. Of course this would mean the slider isnt not going to be reset upon a confirmation but instead would be reset after the time allocated whether or not your use case was satisfied properly.

from react-native-slider.

nuttylord avatar nuttylord commented on July 28, 2024

ive been doing my own research to find my own solution and i think i came across the answer to the solution. Its simply an event dispatcher made by facebook.

https://facebook.github.io/flux/

I have yet to implement into my own project i dont know whether you need to pass the same flux dispatcher instance down through each object or if you can just declare it in each component (i think you can just declare it in both components from my experience with c# dispatchers) but its definitely a solution to your problem (and mine!).

from react-native-slider.

kylanhurt avatar kylanhurt commented on July 28, 2024

@nuttylord I am already using Redux, which is an implementation of Flux, but to no avail.

from react-native-slider.

MaxiSantos avatar MaxiSantos commented on July 28, 2024

@kylanhurt add a componentWillReceiveProps in ABSlider and there set the state again.

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.