From 07be457900350134683f460f08d803bf302096f3 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Wed, 13 Jan 2021 00:15:32 +0000 Subject: [PATCH] example: add button to show splash screen again --- examples/App.js | 59 +++++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/examples/App.js b/examples/App.js index a6a34d3d..74b0ec3f 100644 --- a/examples/App.js +++ b/examples/App.js @@ -17,6 +17,7 @@ import { Text, TouchableOpacity, Linking, + Button, } from 'react-native' import SplashScreen from 'react-native-splash-screen' @@ -26,30 +27,37 @@ export default class example extends Component { SplashScreen.hide(); } - render() { return ( - { - Linking.openURL('https://coding.imooc.com/class/304.html'); - }} - > - - - SplashScreen 启动屏 - - - @:http://www.devio.org/ - - - GitHub:https://github.com/crazycodeboy - - - Email:crazycodeboy@gmail.com - + + { + Linking.openURL('https://coding.imooc.com/class/304.html'); + }} + > + + + SplashScreen 启动屏 + + + @:http://www.devio.org/ + + + GitHub:https://github.com/crazycodeboy + + + Email:crazycodeboy@gmail.com + + + + +