šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

rn-wave-bottom-bar-rtl-support

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-wave-bottom-bar-rtl-support

🌊 Animated bottom bar for react-navigation, react-native.

0.1.4
latest
Source
npm
Version published
Weekly downloads
14
250%
Maintainers
1
Weekly downloads
Ā 
Created
Source

rn-wave-bottom-bar semantic-release Build Status Known Vulnerabilities CodeFactor

Updated rtl/ltr props from https://github.com/Jm-Zion/rn-wave-bottom-bar

Sample

Custom animated bottom-tab-bar for react-native.

šŸ’¾ Installation

yarn add rn-wave-bottom-bar

or

yarn install rn-wave-bottom-bar --save

šŸ“‹ Requirements

āš’ļø Usage

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',
		}}
		tabBar={(props) => (
			<BottomFabBar
				color="purple"
				{...props}
				isRtl={false}
			/>
		)}>
		<Tab.Screen
			options={{tabBarIcon: tabBarIcon('aliwangwang-o1')}}
			name="Home"
			component={generateScreen('Home')}
		/>
		<Tab.Screen
			name="Meh"
			options={{tabBarIcon: tabBarIcon('meh')}}
			component={generateScreen('Meh')}
		/>
	</Tab.Navigator>
</NavigationContainer>;

šŸ”§ Props

PropTypeDescription
colorstringBottom Bar background color
springConfigAnimated.SpringConfigSpring config for the animation
tabBarPropsBottomTabBarPropsTabBar props passed from the Tab Component

šŸ“„ Credits

Thanks to Jm-Zion for this original component : https://github.com/Jm-Zion

Thanks to W.Candillon for the tuto : https://www.youtube.com/watch?v=6LsLgHeX500

Initial Design : https://uimovement.com/design/tab-bar-3/

Compatibility

āœ… Works well with mosts Devices and tested on iPad, IPhones, Android Devices.

āœ… Support device orientation.

āœ… Support i18n (rtl/ltr direction).

Keywords

react-native

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

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.

Install

Related posts