参照网页:

http://blog.csdn.net/fengyuzhengfan/article/details/52712829

 

首先是在原生中写一些方法,然后通过react native中js去引用

'use strict';

import { NativeModules } from 'react-native';
module.exports = NativeModules.SplashScreen;

隐藏的方法:

componentDidMount() {
    SplashScreen.hide();
}

 

相关文章:

  • 2023-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-09-16
  • 2022-12-23
  • 2023-03-19
猜你喜欢
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案