Comments (5)
I tried simulate here and is working. You tried it with debug remote enable? Sometimes debug remote delay actions with animations.
from react-native-switch-selector.
I started a debug build from the command line, but did not have a debugger connected. Remote logging was enabled, though.
from react-native-switch-selector.
In my case, I can change the selection once only. If I wanna change the value without pressing on the button, it only work on the first time.
Steps to simulate:
- change the value by changing the state
- press on a different selection
- try to change the value again by changing the state (does not work)
from react-native-switch-selector.
This is my code:
<SwitchSelector
buttonColor={COLOR_BLUE}
borderColor={COLOR_BLUE}
options={uomList}
value={this.state.selectedSwitch}
initial={this.state.selectedSwitch}
onPress={value => this.uomSelect(value)}
/>
In your source code I saw this:
react-native-switch-selector/index.js
Line 58 in d629ed5
If in my this.uomSelect
function I get the index of value
and set this.setState({selectedSwitch : pressedIndex})
. After that I try to change the value
from other function without pressing on the button, it works fine. Not sure if I could explain properly
from react-native-switch-selector.
same me
from react-native-switch-selector.
Related Issues (20)
- Warning: componentWillReceiveProps is deprecated in 0.60 HOT 2
- valuePadding not working properly
- Add eslint in .circleci/config.yml HOT 2
- goBack and navigate again no border color and button color
- React Web version HOT 1
- Previous value on componentDidUpdate() HOT 1
- No spacing at the top on the button HOT 4
- Configuring initial with conditional based on prop HOT 2
- Change value dynamically after the initial render HOT 5
- Invalid prop type `options` HOT 3
- Problems with textColor and selectedColor HOT 2
- Custom font HOT 1
- Toggle not changed after change initial state at run time. HOT 3
- Accessibility Label HOT 5
- Switch selector not changing its values in "options" attribute when translated. HOT 1
- Allow change easing animation
- Change only de border color
- Change only the border color HOT 3
- Only one is usable per page
- SyntaxError: Support for the experimental syntax 'jsx' isn't currently enabled (154:9) HOT 1
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-switch-selector.