torgeadelin / react-native-animated-nav-tab-bar

A simple and customisable React Native component that implements an animated bottom tab bar for React Navigation.
MIT License
902 stars 101 forks source link

Invariant Violation: Invalid prop `backgroundColor` supplied to `StyleSheet generated` #34

Closed maheshlipane99 closed 4 years ago

maheshlipane99 commented 4 years ago

Invariant Violation: Invalid prop backgroundColor supplied to StyleSheet generated: Valid color formats are

StyleSheet generated: { "position": "absolute", "top": 20, "width": 0, "height": 0, "borderRadius": 100, "backgroundColor": "", "zIndex": -1 }

<Tabs.Navigator
  tabBarOptions={{
    activeTintColor: "#2F7C6E",
    inactiveTintColor: "#222222",
  }}

>
  <Tabs.Screen name="Home" component={HomeScreen} />
  <Tabs.Screen name="Orders" component={Orders} />
  <Tabs.Screen name="Profile" component={Profile} />
</Tabs.Navigator>
torgeadelin commented 4 years ago

Hi, what was the issue?

FawadMahmood commented 4 years ago

Having same issue.

Mimicx commented 4 years ago

Same issue..

Mimicx commented 4 years ago

i noticed that adding the prop activeBackgroundColor, the error disappear.