App.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. import Guide1 from './Src/Pages/_3_Guide1';
  15. import Guide2 from './Src/Pages/_4_Guide2';
  16. //팝업 임포트
  17. import TermsPopup from './Src/Popup/_1_TermsPopup';
  18. //다국어
  19. import i18n from "i18n-js";
  20. import KO from "./Src/I18n/ko"
  21. i18n.translations["ko"] = KO;
  22. i18n.locale = "ko";
  23. //모듈 임포트
  24. import * as RN from 'react-native'
  25. import * as EL from 'react-native-elements'
  26. import H from './Src/Component/Header'
  27. import C from 'rn-class'
  28. C.addComp(RN);
  29. C.addComp(EL, "EL");
  30. C.addComp({Header : H}, "Comp" );
  31. const App = () => {
  32. useEffect(() => {
  33. console.log(">>>>>>>>>>>>>>>>>>:")
  34. __DEV__ && KeepAwake.activate();
  35. }, []);
  36. return (
  37. <Fragment>
  38. <C.SafeAreaView cls="flx1">
  39. {/* <AcceptTerms/> */}
  40. <Guide2/>
  41. </C.SafeAreaView>
  42. </Fragment>
  43. );
  44. };
  45. export default App;
  46. // let setLang = async () =>{
  47. // // let lan = await AsyncStorage.getItem('user:lan')
  48. // // if(!lan){
  49. // // lan = "en";
  50. // // }
  51. // // console.log(">>>>>>>>>>>>>>>" , lan);
  52. // i18n.locale = "ko";
  53. // }