react-native-wait-navigation

React Native navigation initialization handler

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-native-wait-navigation
1300.2.23 months ago6 months agoMinified + gzip package size for react-native-wait-navigation in KB

Readme

React Native Wait Navigation
React Native Navigation initialization handler.

Installation

npm i react-native-wait-navigation
yarn add react-native-wait-navigation

Usage

import { createRef } from 'react';
import { NavigationContainer, NavigationContainerRef } from '@react-navigation/native';
import { useWaitNavigation } from 'react-native-wait-navigation';

export const navigationRef = createRef<NavigationContainerRef>();

export default function App() {
  useWaitNavigation(navigationRef, () => {
    closeSplashScreen();
  });

  return (
    <NavigationContainer ref={navigationRef}>
        {/* Rest of your app code */}
    </NavigationContainer>
  );
}