Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
rn-wave-bottom-bar
Advanced tools
Changelog
Readme
Custom animated bottom-tab-bar for react-native.
Make sure you installed react-native-safe-area-context
before installing the library
yarn add rn-wave-bottom-bar
or
npm install rn-wave-bottom-bar --save
<Tab.Navigator
screenOptions={{
tabBarActiveTintColor: '#5F0B65',
tabBarActiveBackgroundColor: '#5F0B65',
tabBarInactiveBackgroundColor: 'red',
}}
tabBar={(props) => (
<BottomFabBar
mode={'square' | 'default'}
isRtl={false}
// Add Shadow for active tab bar button
focusedButtonStyle={{
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 7,
},
shadowOpacity: 0.41,
shadowRadius: 9.11,
elevation: 14,
}}
// - You can add the style below to show screen content under the tab-bar
// - It will makes the "transparent tab bar" effect.
bottomBarContainerStyle={{
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
}}
{...props}
/>
)}
>
<Tab.Screen
options={{
tabBarIcon: tabBarIcon('aliwangwang-o1'),
}}
name="Home"
component={generateScreen('Home')}
/>
<Tab.Screen
name="Meh"
options={{ tabBarIcon: tabBarIcon('meh') }}
component={generateScreen('Meh')}
/>
<Tab.Screen
options={{
tabBarIcon: tabBarIcon('rocket1'),
tabBarActiveBackgroundColor: '#45014A',
tabBarActiveTintColor: 'purple',
}}
name="Settings"
component={SettingsScreen}
/>
<Tab.Screen
options={{ tabBarIcon: tabBarIcon('Trophy') }}
name="Trophy"
component={generateScreen('Trophy')}
/>
<Tab.Screen
options={{ tabBarIcon: tabBarIcon('wallet') }}
name="Wallet"
component={generateScreen('Wallet')}
/>
</Tab.Navigator>
Prop | Type | Description |
---|---|---|
springConfig | Animated.SpringConfig | Spring config for the animation |
Install the version 1.0.3 :
yarn add rn-wave-bottom-bar@1.0.3
const Tab = createBottomTabNavigator();
const tabBarIcon =
(name: string) =>
({
focused,
color,
size,
}: {
focused: boolean;
color: string; // Defines fab icon color
size: number;
}) =>
<Icon name={name} size={28} color={focused ? 'white' : 'white'} />;
<NavigationContainer>
<Tab.Navigator
tabBarOptions={{
activeTintColor: 'purple', // Used for the FAB background Color
}}
tabBar={(props) => <BottomFabBar color="purple" {...props} />}
>
<Tab.Screen
options={{ tabBarIcon: tabBarIcon('aliwangwang-o1') }}
name="Home"
component={generateScreen('Home')}
/>
<Tab.Screen
name="Account"
options={{ tabBarIcon: tabBarIcon('meh') }}
component={generateScreen('Meh')}
/>
</Tab.Navigator>
</NavigationContainer>;
TabBar:
tabBarOptions.activeTintColor -> screenOptions.tabBarActiveBackgroundColor
BottomFabBar :
color -> focusedButtonStyle
Thanks to W.Candillon for the tuto : https://www.youtube.com/watch?v=6LsLgHeX500
Initial Design : https://uimovement.com/design/tab-bar-3/
โ Works well with mosts Devices and tested on iPad, IPhones, Android Devices.
โ Support device orientation.
โ RTL support. (thanks darkhorse-coder)
๐ Checkout our other libraries :
FAQs
๐ Animated bottom bar for react-navigation, react-native.
The npm package rn-wave-bottom-bar receives a total of 115 weekly downloads. As such, rn-wave-bottom-bar popularity was classified as not popular.
We found that rn-wave-bottom-bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.