react-native-exit-app icon indicating copy to clipboard operation
react-native-exit-app copied to clipboard

support react-native-web

Open tony9527167 opened this issue 2 years ago • 0 comments

We build app for native, but debugging and preview on web, it makes things go easier and fastest.

please add support for react-native-web, log warning instead of raise exception on web/react-native-web

TypeError
undefined is not an object (evaluating '_index.TurboModuleRegistry.getEnforcing')
Call Stack
 eval code
  :undefined:undefined
 ./node_modules/react-native-exit-app/NativeRNExitApp.ts
  vendor.c3fb492439d06c32c09e.js:1627:5
 undefined
  main.8c71db7feb61bb2278b2.js:1506:35
 __webpack_require__
  main.8c71db7feb61bb2278b2.js:899:37
 fn
  main.8c71db7feb61bb2278b2.js:1145:28
 eval code
  :undefined:undefined
 ./node_modules/react-native-exit-app/index.js
  vendor.c3fb492439d06c32c09e.js:1637:5
 undefined
  main.8c71db7feb61bb2278b2.js:1506:35
 __webpack_require__
  main.8c71db7feb61bb2278b2.js:899:37
 fn
  main.8c71db7feb61bb2278b2.js:1145:28
× Close

test environment:

"react-native-exit-app": "^2.0.0", "react-native": "^0.72.6", "react-native-web": "^0.19.7",

tony9527167 avatar Nov 11 '23 08:11 tony9527167