Uh oh!
There was an error while loading. Please reload this page.
Add SegmentedControlIOS - #564
Conversation
a2
commented
Apr 1, 2015
Clay, this looks great. I only have a few nit requests but if you can make those edits, we can merge this straightaway. 😃 |
ashwinb
commented
Apr 1, 2015
Hm, we should ideally just use |
a2
commented
Apr 1, 2015
@ashwinb Good idea. I like that better. The user should be able to set the |
clayallsopp
commented
Apr 1, 2015
@a2@ashwinb I went back and forth on this; I figured that, on the JS side, people would be doing the index -> value conversion on every callback to make their logic not dependent on ordering, so we might as well do it for them. I.e.: vs maybe a compromise is to 1) allow but my opinion isn't terribly strong, so will defer to your judgement |
ashwinb
commented
Apr 1, 2015
Yes, passing both |
clayallsopp
commented
Apr 1, 2015
I've updated the PR; check out the API examples |
vjeux
commented
Apr 3, 2015
It doesn't patch cleanly anymore, can you rebase? Sorry about this |
06c2d95 to
49ddd7aCompareclayallsopp
commented
Apr 3, 2015
@vjeux done, np |
jozan
commented
Apr 27, 2015
What's the status of this? |
There was a problem hiding this comment.
Needs RCT_EXPORT_MODULE(); to work in current version.
nicklockwood
commented
Apr 29, 2015
Hey, sorry about the radio silence on this. The internal diff sort of got lost in transmission for a while, however the good news is that this has now been merged and will ship with the next release. |
clayallsopp
commented
Apr 30, 2015
Lovely, thanks! |
* Docs for Appstate I lost whatever pull request that was so I have recreated here in response to issue react#564 * Update reason-react-native/src/apis/AppState.md Co-Authored-By: Max Thirouin <git@moox.io>
Fixes#534:
This only supports string-based segments, not images. Also doesn't support full customization (no separator images etc); I figure this is a good MVP to lock-down a basic API
I also included a snapshot test case, but the images keep coming out funky. When I look at the sim, I see that the text labels show up for the selected segment, but the snapshot keeps coming out with no text on those segments. I tried forcing a delay, but same result. Is that explainable?
Obviously happy to change anything about the API, code-style nitpicks, etc