Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { useEffect } from "react";
- import { Text } from "react-native";
- import RNBootSplash from "react-native-bootsplash";
- function App() {
- let init = async () => {
- // …do multiple async tasks
- };
- useEffect(() => {
- init().finally(() => {
- RNBootSplash.hide({ duration: 250 });
- });
- }, []);
- return <Text>My awesome app</Text>;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement