Skip to content

Conversation

@t83714
Copy link

@t83714 t83714 commented Jul 23, 2017

Allow style can be set on TouchableOpacity elements inside SegmentedItem elements.
This will solve the issue that bigger size Badges may be covered by the content of adjacent SegmentedItem.
Set zIndex to Badge element won’t help — it seems zIndex on children elements of a TouchableOpacity will be ignored (tested on iOS 10.3 on a iPhone 6 emulator).
Setting zIndex to TouchableOpacity directly will work, however.
If you have better solution, please ignore this pull request and let me know.

…tem elements.

This will solve the issue that bigger size Badges may be covered by adjacent SegmentedItem.
Set zIndex to Badge element won’t help — it seems zIndex on children elements of a TouchableOpacity will be ignored (tested on iOS 10.3 on a iPhone 6 emulator).
Setting zIndex to TouchableOpacity directly will work, however.
@rilyu
Copy link
Owner

rilyu commented Jul 24, 2017

It is not the best solution, I have modified the code to solve this bug: cd66c88
It will be published to npm later, you can install it like this:

npm install teaset@git+https://github.com/rilyu/teaset.git

@t83714
Copy link
Author

t83714 commented Jul 24, 2017

Many thanks. Your solution works better. Closed the pull request.

@t83714 t83714 closed this Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants