Created
March 3, 2023 13:13
-
-
Save naveen1337/932ed3e22b698bcbc88c581f8ca6a47c to your computer and use it in GitHub Desktop.
react_native_check_isScreenReady_custom_hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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