futurice / pepperoni-app-kit

Pepperoni - React Native App Starter Kit for Android and iOS
http://getpepperoni.com
MIT License
4.63k stars 645 forks source link

Possible Unhandled Promise Rejection (id: 0): `tabBar` cannot be defined as a function in navigation options for `Counter` screen #216

Closed badis closed 7 years ago

badis commented 7 years ago

I have started a new app following the installation instructions:

git clone https://github.com/futurice/pepperoni-app-kit.git
cd pepperoni-app-kit
yarn install
react-native run-android

At first run i got this error:

Possible Unhandled Promise Rejection (id: 0): `tabBar` cannot be defined as a function in navigation options for `Counter` screen

screenshot from 2017-08-17 11-10-56

Note: All tests run successfully !

screenshot from 2017-08-17 11-14-00

Thanks

kagmanoj25 commented 7 years ago

just run below command then restart your VSC then run the android command you will get output "yarn add react-navigation"

badis commented 7 years ago

@kagmanoj25 react-navigation is already installed. I have tried to install it another time and it works! may be it's cache issue in npm modules or something liket that!