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

[TabNavigator] : Bad Output Range #62

Closed
shahen94 opened this issue Jan 28, 2017 · 1 comment
Closed

[TabNavigator] : Bad Output Range #62

shahen94 opened this issue Jan 28, 2017 · 1 comment

Comments

@shahen94
Copy link

I get this error when i want render navigator

screen shot 2017-01-28 at 7 31 42 pm

Here is my code

import { TabNavigator } from 'react-navigation';
import * as screens from 'AppScreens';

const configure = {};

for (const name in screens) {
	if (!screens.hasOwnProperty(name)) {
		continue;
	}
	configure[name] = {
		screen: screens[name]
	};
}

const options = {
	tabBarOptions: {
    activeTintColor: '#e91e63',
  },
}
export const Navigator = TabNavigator(configure, options);

export const App = () => (
	<Provider store={store}>
		<Navigator />
	</Provider>
);

@shahen94
Copy link
Author

I figured this out. Seems like when i have less that 2 screen, then i'll get this error.

Please provide more detailed error

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

1 participant