개발자
react-native에서 앱 강제 재시작하는 코드 어떻게 작성하나요..? 혹시 아시는 분 있으실까요?
답변 1
https://stackoverflow.com/questions/37489946/programmatically-restart-a-react-native-app 이 글 참고하면 좋을 것 같습니다. 모바일 운영체제 마다 적용되는게 다르고, JS만 reload인지, 앱 restart인지에 따라 다양하게 적용할 수 있다고 하네요 1) CodePush import CodePush from 'react-native-code-push'; CodePush.restartApp(); 2) NativeModules import { NativeModules } from "react-native"; NativeModules.DevSettings.reload(); 3) React Native Restart
익명
작성자
2022년 11월 10일
React Native Restart이게 딱 원하는 거였는데 감사합니다 ㅠㅠ
지금 가입하면 모든 질문의 답변을 볼 수 있어요!
현직자들의 명쾌한 답변을 얻을 수 있어요.
이미 회원이신가요?
지금 가입하면 모든 질문의 답변을 볼 수 있어요!