我想在 react native 中完成我的启动画面我该怎么做我已经搜索了很多但没有找到我正在使用这个@react-navigation/native 的任何东西。
1 回答
0
尝试使用react-native-splash-screen
从 'react-native-splash-screen' 导入 SplashScreen
export default class App extends Component {
componentDidMount() {
// do stuff while splash screen is shown
// After having done stuff (such as async tasks) hide the splash screen
SplashScreen.hide();
}
}
于 2021-01-19T10:05:45.407 回答