From 532a06d13f204df627219314e4ca7819e6483bdd Mon Sep 17 00:00:00 2001 From: hackerhgl Date: Sat, 4 Apr 2020 12:07:46 +0500 Subject: [PATCH] Dynamic version in HomeScreen --- app/screens/Home/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/screens/Home/index.js b/app/screens/Home/index.js index dece426..c9c3bb0 100755 --- a/app/screens/Home/index.js +++ b/app/screens/Home/index.js @@ -1,8 +1,9 @@ import React, { useEffect, useContext } from 'react'; import { View } from 'react-native'; +import PropTypes from 'prop-types'; import { useDynamicStyleSheet } from 'react-native-dark-mode'; import { useIsFocused } from 'react-navigation-hooks'; -import PropTypes from 'prop-types'; +import DeviceInfo from 'react-native-device-info'; import { TouchNative } from 'rn-hgl'; import { SettingsContext } from 'contexts/Settings'; @@ -29,6 +30,7 @@ function HomeScreen({ navigation }) { state.player.pause(); } }, [isFocused]); + return ( Welcome @@ -44,7 +46,7 @@ function HomeScreen({ navigation }) { ))} - VERSION 1.0.0 + VERSION {DeviceInfo.getVersion()} ); }