Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-native-bottom-navigation
Advanced tools
A top-level component following the 'Bottom navigation' Material Design spec.
This is a top-level component following the 'Bottom navigation' Material Design specifications.
npm install --save react-native-bottom-navigation
rnpm link react-native-bottom-navigation
Add node_modules/react-native-bottom-navigation/iOS/RCTBottomNavigation.xcodeproj to your xcode project, usually under the Libraries group
Add libRCTBottomNavigation.a (from Products under RCTBottomNavigation.xcodeproj) to build target's Linked Frameworks and Libraries list
android/settings.gradle
:include ':RNBottomNavigation'
project(':RNBottomNavigation').projectDir = file('../node_modules/react-native-bottom-navigation/android')
android/app/build.gradle
dependencies {
...
compile project(':RNBottomNavigation')
}
MainActivity.java
, make the following changes:import com.github.orhan.bottomnavigation.ReactBottomNavigationPackage; <-- Import this!
...
@Override protected
List<ReactPackage> getPackages() {
return Arrays.asList(
new MainReactPackage(),
new ReactBottomNavigationPackage() <-- Add this!
);
}
const BottomNavigation = require('react-native-bottom-navigation');
<BottomNavigation
style={styles.container}
activeColor="rgb(0, 100, 125)"
inactiveColor="#757575"
>
<View
style={styles.child}
tabLabel="Tab 1"
tabIcon={require('./icons/ic_tab_1.png')}
/>
<View
style={styles.child}
tabLabel="Tab 2"
tabIcon={require('./icons/ic_tab_2.png')}
/>
<View
style={styles.child}
tabLabel="Tab 3"
tabIcon={require('./icons/ic_tab_3.png')}
/>
<View
style={styles.child}
tabLabel="Tab 4"
tabIcon={require('./icons/ic_tab_4.png')}
/>
</BottomNavigation>
You can check out the Example Project to get a better understanding of this library.
TODO
This library is based on the fantastic work of the React-Native Material-Kit by xinthink. So if you are interested in having the ripple effect in other areas of your app, you can check that library out.
MIT Licensed
FAQs
A top-level component following the 'Bottom navigation' Material Design spec.
The npm package react-native-bottom-navigation receives a total of 8 weekly downloads. As such, react-native-bottom-navigation popularity was classified as not popular.
We found that react-native-bottom-navigation 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.