Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save naveen1337/932ed3e22b698bcbc88c581f8ca6a47c to your computer and use it in GitHub Desktop.

Select an option

Save naveen1337/932ed3e22b698bcbc88c581f8ca6a47c to your computer and use it in GitHub Desktop.
react_native_check_isScreenReady_custom_hook
export function useIsScreenReady() {
const [screenReady, setScreenReady] = useState(false);
useEffect(() => {
InteractionManager.runAfterInteractions(() => {
setScreenReady(true);
});
}, []);
return screenReady;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment