
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-rj-navigator
Advanced tools
RJNavigator is a wrapper written on top of React Native's Navigator. RJNavigator passes the instance of itself to all the components being pushed on to it. This means, you have this.props.navigator in all the components to use.
You'll also need a navigation bar. I highly recommend using react-native-navbar with RJNavigator.
First of all, you need to require the following components.
var Navigator = require('react-native-rj-navigator').Navigator;
// if you're using the navbar, you might need the following ones too
NavBarButton = require('react-native-rj-navigator').NavBarButton,
NavBarTitle = require('react-native-rj-navigator').NavBarTitle;
This is how you would create a Navigator.
var RJNavigatorExample = React.createClass({
render: function() {
return (
<Navigator
backgroundColor={Colors.defaultIOSToolBarColor}
tintColor={Colors.defaultIOSTintColor}
initialRoute={{ component: RootView }}
/>
);
}
});
You can push new components on the Navigator Stack using one of the following
this.props.navigator.push({
component: ViewOne,
props: {
text: 'This is the first view',
number: 100
}
});
/// OR
this.props.navigator.push( { component: <ViewTwo text={'This is the second view.'} /> });
These basics should get your started. Hopefully way faster than using React Native's Navigator.
If you need to look at a working example, check out the example in RJNavigatorExample directory.

nam install.RJNavigatorExample/ios/RJNavigatorExample.xcodeproj file to run it in Xcode.If you have difficulties using this package, feel free to create an issue or letting me know via email or any other medium you can reach me with.
Feel absolutely free to improve this package by requesting new features, creating issues. Pull requests are the most welcome.
FAQs
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.