App.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import React, {Fragment, useEffect} from 'react';
  2. import {
  3. SafeAreaView,
  4. StyleSheet,
  5. ScrollView,
  6. View,
  7. Text,
  8. StatusBar,
  9. } from 'react-native';
  10. import KeepAwake from 'react-native-keep-awake';
  11. //페이지 import
  12. import LoginPage from './Src/Pages/_1_Login';
  13. import AcceptTerms from './Src/Pages/_2_AcceptTerms';
  14. //팝업 임포트
  15. //다국어
  16. import i18n from "i18n-js";
  17. import KO from "./Src/I18n/ko"
  18. i18n.translations["ko"] = KO;
  19. i18n.locale = "ko";
  20. //모듈 임포트
  21. import * as RN from 'react-native'
  22. import * as EL from 'react-native-elements'
  23. import C from 'rn-class'
  24. C.addComp(RN);
  25. C.addComp(EL, "EL");
  26. const App = () => {
  27. useEffect(() => {
  28. console.log(">>>>>>>>>>>>>>>>>>:")
  29. __DEV__ && KeepAwake.activate();
  30. }, []);
  31. return (
  32. <Fragment>
  33. <C.SafeAreaView cls="flx1">
  34. <AcceptTerms/>
  35. </C.SafeAreaView>
  36. </Fragment>
  37. );
  38. };
  39. export default App;
  40. // let setLang = async () =>{
  41. // // let lan = await AsyncStorage.getItem('user:lan')
  42. // // if(!lan){
  43. // // lan = "en";
  44. // // }
  45. // // console.log(">>>>>>>>>>>>>>>" , lan);
  46. // i18n.locale = "ko";
  47. // }