GeekyAnts / vue-native-router

37 stars 24 forks source link

TabNavigation Icon #5

Closed cargie closed 6 years ago

cargie commented 6 years ago

I am trying to replace the label with Icon but when I use

navigationOptions: ({ navigation }) => ({ tabBarIcon: ({ focused, tintColor }) => { const { routeName } = navigation.state; return <ionicons name="people"> }, }),

It will generate an error which looks for React.

neeraj-singh47 commented 6 years ago

@cargie Refer to issue https://github.com/GeekyAnts/vue-native-core/issues/62. You'll have to import React in your file which is already installed