Skip to content

Commit

Permalink
npx rn-nodeify --install --hack --yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Aug 10, 2021
1 parent f0cc535 commit ca87cf8
Show file tree
Hide file tree
Showing 4 changed files with 706 additions and 30 deletions.
24 changes: 24 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ PODS:
- React (~> 0.60)
- react-native-netinfo (5.9.10):
- React-Core
- react-native-randombytes (3.6.1):
- React-Core
- react-native-receive-sharing-intent (1.0.4):
- React
- react-native-restart (0.0.17):
Expand All @@ -332,6 +334,8 @@ PODS:
- React-Core
- react-native-splash-screen (3.2.0):
- React
- react-native-udp (2.7.0):
- React
- react-native-version-number (0.3.6):
- React
- react-native-webview (11.2.3):
Expand Down Expand Up @@ -435,6 +439,8 @@ PODS:
- React-Core
- React-RCTImage
- TOCropViewController
- RNOS (1.2.6):
- React
- RNReanimated (1.13.2):
- React-Core
- RNScreens (2.18.1):
Expand All @@ -449,6 +455,8 @@ PODS:
- SDWebImageWebPCoder (0.6.1):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.7)
- TcpSockets (3.3.2):
- React
- TOCropViewController (2.6.0)
- toolbar-android (0.1.0-rc.2):
- React
Expand Down Expand Up @@ -486,10 +494,12 @@ DEPENDENCIES:
- react-native-date-picker (from `../node_modules/react-native-date-picker`)
- react-native-matomo-sdk (from `../node_modules/react-native-matomo-sdk`)
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
- react-native-randombytes (from `../node_modules/react-native-randombytes`)
- react-native-receive-sharing-intent (from `../node_modules/react-native-receive-sharing-intent`)
- react-native-restart (from `../node_modules/react-native-restart`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- react-native-splash-screen (from `../node_modules/react-native-splash-screen`)
- react-native-udp (from `../node_modules/react-native-udp`)
- react-native-version-number (from `../node_modules/react-native-version-number`)
- react-native-webview (from `../node_modules/react-native-webview`)
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
Expand All @@ -513,10 +523,12 @@ DEPENDENCIES:
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNIap (from `../node_modules/react-native-iap`)
- RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`)
- RNOS (from `../node_modules/react-native-os`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSVG (from `../node_modules/react-native-svg`)
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
- TcpSockets (from `../node_modules/react-native-tcp`)
- "toolbar-android (from `../node_modules/@react-native-community/toolbar-android`)"
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

Expand Down Expand Up @@ -603,6 +615,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-matomo-sdk"
react-native-netinfo:
:path: "../node_modules/@react-native-community/netinfo"
react-native-randombytes:
:path: "../node_modules/react-native-randombytes"
react-native-receive-sharing-intent:
:path: "../node_modules/react-native-receive-sharing-intent"
react-native-restart:
Expand All @@ -611,6 +625,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-safe-area-context"
react-native-splash-screen:
:path: "../node_modules/react-native-splash-screen"
react-native-udp:
:path: "../node_modules/react-native-udp"
react-native-version-number:
:path: "../node_modules/react-native-version-number"
react-native-webview:
Expand Down Expand Up @@ -657,6 +673,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-iap"
RNImageCropPicker:
:path: "../node_modules/react-native-image-crop-picker"
RNOS:
:path: "../node_modules/react-native-os"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNScreens:
Expand All @@ -665,6 +683,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-svg"
RNVectorIcons:
:path: "../node_modules/react-native-vector-icons"
TcpSockets:
:path: "../node_modules/react-native-tcp"
toolbar-android:
:path: "../node_modules/@react-native-community/toolbar-android"
Yoga:
Expand Down Expand Up @@ -718,10 +738,12 @@ SPEC CHECKSUMS:
react-native-date-picker: 242eec7af56cea5fb2706d5db5d3837060b3884b
react-native-matomo-sdk: 025c54f92e1e26a4d0acee7c3f28cb0fc7e4729c
react-native-netinfo: 30fb89fa913c342be82a887b56e96be6d71201dd
react-native-randombytes: 421f1c7d48c0af8dbcd471b0324393ebf8fe7846
react-native-receive-sharing-intent: feba0a332a07977549a85aa58b496eb44368366a
react-native-restart: d19a0f8d053d065fe64cd2baebb6487111c77149
react-native-safe-area-context: b6e0e284002381d2ff29fa4fff42b4d8282e3c94
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-udp: ff9d13e523f2b58e6bc5d4d32321ac60671b5dc9
react-native-version-number: b415bbec6a13f2df62bf978e85bc0d699462f37f
react-native-webview: 6520e3e7b4933de76b95ef542c8d7115cf45b68e
React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
Expand All @@ -745,12 +767,14 @@ SPEC CHECKSUMS:
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
RNIap: 536b64f090a3d2e707b4f55d9aa5351482f20ea4
RNImageCropPicker: 08ba3a2e2f4f8833d606f01906c371e382c4dea9
RNOS: 6f2f9a70895bbbfbdad7196abd952e7b01d45027
RNReanimated: e03f7425cb7a38dcf1b644d680d1bfc91c3337ad
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
RNSVG: 8ba35cbeb385a52fd960fd28db9d7d18b4c2974f
RNVectorIcons: 368d6d8b8301224e5ffb6254191f4f8876c2be0d
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21
TcpSockets: 14306fb79f9750ea7d2ddd02d8bed182abb01797
TOCropViewController: 3105367e808b7d3d886a74ff59bf4804e7d3ab38
toolbar-android: 85f3ef4d691469f2d304e7dee4bca013aa1ba1ff
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
Expand Down
83 changes: 81 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@esteemapp/react-native-multi-slider": "^1.1.0",
"@esteemapp/react-native-render-html": "^4.1.5",
"@esteemapp/react-native-slider": "^0.12.0",
"@hiveio/dhive": "ecency/dhive-test",
"@hiveio/dhive": "^1.0.1",
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/cameraroll": "^1.3.0",
"@react-native-community/cli-platform-ios": "^4.10.1",
Expand All @@ -46,22 +46,35 @@
"@react-native-firebase/app": "^8.4.7",
"@react-native-firebase/dynamic-links": "^7.4.2",
"@react-native-firebase/messaging": "^7.4.2",
"@tradle/react-native-http": "^2.0.0",
"appcenter": "^4.1.0",
"appcenter-analytics": "^4.1.0",
"appcenter-crashes": "^4.1.0",
"assert": "^1.1.1",
"axios": "^0.21.1",
"browserify-zlib": "~0.1.4",
"buffer": "^5.4.3",
"console-browserify": "^1.1.0",
"constants-browserify": "^1.0.0",
"core-js": "3.6.4",
"crypto-js": "^3.1.9-1",
"currency-symbol-map": "^4.0.4",
"diff-match-patch": "^1.0.4",
"dns.js": "^1.0.1",
"domain-browser": "^1.1.1",
"events": "^1.0.0",
"hivesigner": "^3.2.7",
"https-browserify": "~0.0.0",
"intl": "^1.2.5",
"jsc-android": "^241213.1.0",
"lodash": "^4.17.13",
"lottie-ios": "3.1.8",
"lottie-react-native": "^3.5.0",
"moment": "^2.22.2",
"path-browserify": "0.0.0",
"process": "^0.11.0",
"punycode": "^1.2.4",
"querystring-es3": "~0.2.0",
"react": "16.13.1",
"react-intl": "^3.9.2",
"react-native": "0.63.4",
Expand All @@ -70,6 +83,7 @@
"react-native-animatable": "^1.3.3",
"react-native-autoheight-webview": "^1.5.8",
"react-native-config": "luggit/react-native-config#master",
"react-native-crypto": "^2.1.0",
"react-native-date-picker": "^3.2.7",
"react-native-dynamic": "^1.0.0",
"react-native-extended-stylesheet": "^0.10.0",
Expand All @@ -82,15 +96,18 @@
"react-native-image-zoom-viewer": "^2.2.27",
"react-native-iphone-x-helper": "^1.3.1",
"react-native-keyboard-aware-scroll-view": "^0.9.1",
"react-native-level-fs": "^3.0.0",
"react-native-linear-gradient": "^2.4.2",
"react-native-matomo-sdk": "feruzm/react-native-matomo-sdk",
"react-native-modal": "^11.5.6",
"react-native-modal-dropdown": "^1.0.1",
"react-native-modal-popover": "^2.0.1",
"react-native-modal-translucent": "^5.0.0",
"react-native-navigation-bar-color": "^1.0.0",
"react-native-os": "^1.0.1",
"react-native-push-notification": "^7.3.1",
"react-native-qrcode-svg": "^6.0.3",
"react-native-randombytes": "^3.0.0",
"react-native-reanimated": "^1",
"react-native-receive-sharing-intent": "ecency/react-native-receive-sharing-intent",
"react-native-restart": "0.0.17",
Expand All @@ -101,6 +118,8 @@
"react-native-splash-screen": "^3.2.0",
"react-native-svg": "^9.5.3",
"react-native-swiper": "^1.6.0-rc.3",
"react-native-tcp": "^3.2.1",
"react-native-udp": "^2.1.0",
"react-native-unique-id": "^2.0.0",
"react-native-vector-icons": "^6.6.0",
"react-native-version": "^4.0.0",
Expand All @@ -114,14 +133,22 @@
"react-navigation-stack": "^1.10.3",
"react-navigation-tabs": "^2.6.2",
"react-redux": "^7.1.1",
"readable-stream": "1.0.33",
"redux": "^4.0.4",
"redux-persist": "^6.0.0",
"redux-promise": "^0.6.0",
"redux-thunk": "^2.3.0",
"rn-fetch-blob": "^0.12.0",
"rn-placeholder": "^1.3.2",
"speakingurl": "^14.0.1",
"stacktrace-parser": "0.1.4"
"stacktrace-parser": "0.1.4",
"stream-browserify": "^1.0.0",
"string_decoder": "~0.10.25",
"timers-browserify": "^1.0.1",
"tty-browserify": "0.0.0",
"url": "~0.10.1",
"util": "~0.10.3",
"vm-browserify": "0.0.4"
},
"devDependencies": {
"@babel/core": "^7.8.4",
Expand Down Expand Up @@ -172,5 +199,57 @@
},
"resolutions": {
"underscore.string": "^3.3.5"
},
"react-native": {
"zlib": "browserify-zlib",
"console": "console-browserify",
"constants": "constants-browserify",
"crypto": "react-native-crypto",
"dns": "dns.js",
"net": "react-native-tcp",
"domain": "domain-browser",
"http": "@tradle/react-native-http",
"https": "https-browserify",
"os": "react-native-os",
"path": "path-browserify",
"querystring": "querystring-es3",
"fs": "react-native-level-fs",
"_stream_transform": "readable-stream/transform",
"_stream_readable": "readable-stream/readable",
"_stream_writable": "readable-stream/writable",
"_stream_duplex": "readable-stream/duplex",
"_stream_passthrough": "readable-stream/passthrough",
"dgram": "react-native-udp",
"stream": "stream-browserify",
"timers": "timers-browserify",
"tty": "tty-browserify",
"vm": "vm-browserify",
"tls": false
},
"browser": {
"zlib": "browserify-zlib",
"console": "console-browserify",
"constants": "constants-browserify",
"crypto": "react-native-crypto",
"dns": "dns.js",
"net": "react-native-tcp",
"domain": "domain-browser",
"http": "@tradle/react-native-http",
"https": "https-browserify",
"os": "react-native-os",
"path": "path-browserify",
"querystring": "querystring-es3",
"fs": "react-native-level-fs",
"_stream_transform": "readable-stream/transform",
"_stream_readable": "readable-stream/readable",
"_stream_writable": "readable-stream/writable",
"_stream_duplex": "readable-stream/duplex",
"_stream_passthrough": "readable-stream/passthrough",
"dgram": "react-native-udp",
"stream": "stream-browserify",
"timers": "timers-browserify",
"tty": "tty-browserify",
"vm": "vm-browserify",
"tls": false
}
}
26 changes: 26 additions & 0 deletions shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
if (typeof __dirname === 'undefined') global.__dirname = '/';
if (typeof __filename === 'undefined') global.__filename = '';
if (typeof process === 'undefined') {
global.process = require('process');
} else {
const bProcess = require('process');
for (var p in bProcess) {
if (!(p in process)) {
process[p] = bProcess[p];
}
}
}

process.browser = false;
if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer;

// global.location = global.location || { port: 80 }
const isDev = typeof __DEV__ === 'boolean' && __DEV__;
process.env.NODE_ENV = isDev ? 'development' : 'production';
if (typeof localStorage !== 'undefined') {
localStorage.debug = isDev ? '*' : '';
}

// If using the crypto shim, uncomment the following line to ensure
// crypto is loaded first, so it can populate global.crypto
// require('crypto')
Loading

0 comments on commit ca87cf8

Please sign in to comment.