ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 415 forks source link

selected prop not working #95

Closed MathiasLund closed 8 years ago

MathiasLund commented 8 years ago

Hi, great repo!

I have this problem that I can't get the 'selected' prop working. It works perfectly without the prop, but when I for instance do:

selected={this.props.selectedTab === 'home'}

it says "Warning: There is an internal error in the React performance measurement code. Did not expect componentDidMount timer to start while render timer is still in progress for another instance."

and the tab bar is gone.

Any help appreciated!

ide commented 8 years ago

Is this happening in a very simple project? I want to know if the issue is with your app code or this component.

MathiasLund commented 8 years ago

Yeah ok, it's a problem with my project - thanks anyway :)

ide commented 8 years ago

Thanks for checking. I will close this issue then.