Among Us - Crewmates
 

[React Native] 안드로이드 시뮬레이터 실행 안되는 문제 해결하기

728x90

[React Native] 안드로이드 시뮬레이터 실행 안되는 문제 해결하기

iOS 시뮬레이터에서는 정상 실행이 되는데, 안드로이드에서만 실행시 에러가 뜨는 문제가 있었다.

Dismiss 버튼을 누르면 에러창이 사라지고 실행할 수는 있지만

그래도 매번 실행할 때마다 에러창이 뜨니 여간 불편한 게 아니었다.

 

TypeError

| TypeError: _RNGestureHandlerModule.default.flushOperations is not a function (it is undefined), js engine: hermes |

 

 

해결

StackOverflow에 동일한 문제를 해결한 내용이 있어서, 참고했다.

https://stackoverflow.com/questions/77959387/error-typeerror-rngesturehandlermodule-default-flushoperations-is-not-a-functi

 

ERROR TypeError: _RNGestureHandlerModule.default.flushOperations is not a function (it is undefined), js engine: hermes

I create the React Native Expo Mobile app. I got this error in android ERROR TypeError: _RNGestureHandlerModule.default.flushOperations is not a function (it is undefined), js engine: hermes.But,No...

stackoverflow.com

 

아주 간단하게 해결이 가능하다.

$ npx expo install react-native-gesture-handler

 

터미널에 들어가 프로젝트의 루트에서 해당 명령어를 통해 패키지를 설치하면 해결된다.

728x90
반응형