参照网页:

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();
}
04-21 00:06