React Native navigation library. Whut?! Another navigation library. This library is slightly different to other libraries in that it is a API shim around them. It provides a way to add navigation to components without affecting the component itself and a centralized registration of screens. It also provides a way to move to screens using type checked property injection.
Navigation libraries can imbue certain properties or restrictions on components. This library does not require any changes to a vanilla React component. The only requirements are that registerScreen is used for each navigation screen and that the Navigator is used as the root of the application.
import Navigator, { registerScreen } from '@ef-carbon/react-native-navigation';
import MyScreen from './MyScreen';
registerScreen(MyScreen);
export default const App = () => <Navigator main={MyScreen} />;