반응형
export default class App extends React.Component {
state = {
isLoading: true,
};
componentDidMount = async () => {
setTimeout(() => {
this.setState({ isLoading: false });
}, 3000);
};

render() {
if (this.state.isLoading) {
return ;
} else {
return (

<Stack.Navigator
initialRouteName="Login"
screenOptions={{
headerShown: false,
}}
>
반응형
복사했습니다!