Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegmentedControl control broken inside wix/react-native-navigation's tab #4

Open
grin opened this issue Feb 2, 2017 · 4 comments
Open
Assignees

Comments

@grin
Copy link

grin commented Feb 2, 2017

Hey, I'm trying to makeCustomSegmentedControl work together with wix/react-native-navigation.
It works fine when I pass the example component to Navigation.startSingleScreenApp

zrzut ekranu 2017-02-02 o 16 34 57

But when I pass the example component as one of the tabs to Navigation.startTabBasedApp the segmented control breaks and looks like this:

zrzut ekranu 2017-02-02 o 16 33 49

it looks like the selected line height isn't respected and somehow all menu items are underlined initially.

Any ideas what could be causing this?

@dima
Copy link

dima commented Apr 2, 2017

I've got the same behaviour inside Navigation.startSingleScreenApp too. All items are underlined and selected line height is half the container. Also the other settings such as selectedLineAlign(top, bottom, etc) are ignored. The selected line goes at the bottom whatever you do.

@gran33 gran33 self-assigned this Apr 2, 2017
@dima
Copy link

dima commented Apr 2, 2017

I should add this is just on a physical device (iPhone SE, iOS 10.3). Everything looks fine in a simulator.

@graphee-gabriel
Copy link

I have the same problem and clicks are not registered.
If i put selectedLineAlign to 'bottom' the line is in the center, but if I remove it it's back to the bottom.
My main problem though is that the press events are not registered...
I can press any item, onSelectedDidChange or onSelectedWillChange are never fired.

@dannysood
Copy link

Any update on this? How did you guys fix it @graphee-gabriel @dima @gran33 @grin

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

No branches or pull requests

5 participants