Skip to content

Commit

Permalink
Native wip (#4)
Browse files Browse the repository at this point in the history
* Native fixes
* Improve lib build + metro
  • Loading branch information
TheUltDev authored May 7, 2024
1 parent 4684cf9 commit 1746675
Show file tree
Hide file tree
Showing 46 changed files with 675 additions and 513 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"material-icon-theme.activeIconPack": "react_redux",
"material-icon-theme.folders.associations": {
"output": "dist",
"bundler": "container",
"client": "mobile",
"guides": "content",
"native": "target",
Expand Down
File renamed without changes.
240 changes: 0 additions & 240 deletions client/App.tsx

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions client/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: [
["@rnx-kit/babel-preset-metro-react-native", {
additionalPlugins: [
'macros',
'tsconfig-paths-module-resolver',
['@rnx-kit/babel-plugin-import-path-remapper', {
test: (path) => path.startsWith('react-exo/'),
remap: (_, path) => `${__dirname}/node_modules/react-exo/gen/cjs/${path}`,
}],
]
}]
],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 1 addition & 8 deletions client/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// require('./src/index.native.tsx');

// @react-native-webapis
// @ts-check
import { AppRegistry } from "react-native";
import { App } from "./App";

AppRegistry.registerComponent('EXO', () => App);
require('./src/index.native.tsx');
File renamed without changes.
24 changes: 16 additions & 8 deletions toolkit/native/ios/Podfile.lock → client/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ PODS:
- React-Mapbuffer (0.73.6):
- glog
- React-debug
- react-native-unistyles (2.7.1):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- React-nativeconfig (0.73.6)
- React-NativeModulesApple (0.73.6):
- glog
Expand Down Expand Up @@ -1015,13 +1019,13 @@ PODS:
- React-jsi (= 0.73.6)
- React-logger (= 0.73.6)
- React-perflogger (= 0.73.6)
- ReactNativeHost (0.4.7):
- ReactNativeHost (0.4.8):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- React-cxxreact
- ReactCommon/turbomodule/core
- ReactTestApp-DevSupport (3.5.13):
- ReactTestApp-DevSupport (3.7.0):
- React-Core
- React-jsi
- ReactTestApp-Resources (1.0.0-dev)
Expand Down Expand Up @@ -1059,6 +1063,7 @@ DEPENDENCIES:
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`)
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- react-native-unistyles (from `../node_modules/react-native-unistyles`)
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
Expand All @@ -1079,7 +1084,7 @@ DEPENDENCIES:
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- "ReactNativeHost (from `../../../node_modules/.pnpm/react-native-test-app@3.5.13_@[email protected]_react-native-macos@0.73_bsvc7hyzoflfs4vemoyzlu6qqi/node_modules/@rnx-kit/react-native-host`)"
- "ReactNativeHost (from `../../node_modules/.pnpm/react-native-test-app@3.7.0_@[email protected]_react-native-macos@0.73._kudraiqpsikfmmfmsseu2enccm/node_modules/@rnx-kit/react-native-host`)"
- ReactTestApp-DevSupport (from `../node_modules/react-native-test-app`)
- ReactTestApp-Resources (from `..`)
- RNSVG (from `../node_modules/react-native-svg`)
Expand Down Expand Up @@ -1143,6 +1148,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/logger"
React-Mapbuffer:
:path: "../node_modules/react-native/ReactCommon"
react-native-unistyles:
:path: "../node_modules/react-native-unistyles"
React-nativeconfig:
:path: "../node_modules/react-native/ReactCommon"
React-NativeModulesApple:
Expand Down Expand Up @@ -1184,7 +1191,7 @@ EXTERNAL SOURCES:
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
ReactNativeHost:
:path: "../../../node_modules/.pnpm/react-native-test-app@3.5.13_@[email protected]_react-native-macos@0.73_bsvc7hyzoflfs4vemoyzlu6qqi/node_modules/@rnx-kit/react-native-host"
:path: "../../node_modules/.pnpm/react-native-test-app@3.7.0_@[email protected]_react-native-macos@0.73._kudraiqpsikfmmfmsseu2enccm/node_modules/@rnx-kit/react-native-host"
ReactTestApp-DevSupport:
:path: "../node_modules/react-native-test-app"
ReactTestApp-Resources:
Expand All @@ -1198,7 +1205,7 @@ SPEC CHECKSUMS:
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
FBLazyVector: f64d1e2ea739b4d8f7e4740cde18089cd97fe864
FBReactNativeSpec: 7d6c3fe162ef9e06afcd8be2972d974f6370d253
FBReactNativeSpec: 5679157b361a2fa5d4f65905761ef320f1b92e18
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0
Expand All @@ -1222,6 +1229,7 @@ SPEC CHECKSUMS:
React-jsinspector: 85583ef014ce53d731a98c66a0e24496f7a83066
React-logger: 3eb80a977f0d9669468ef641a5e1fabbc50a09ec
React-Mapbuffer: 84ea43c6c6232049135b1550b8c60b2faac19fab
react-native-unistyles: 431618e5d043547ae250d89a77abe77562f3c3c7
React-nativeconfig: b4d4e9901d4cabb57be63053fd2aa6086eb3c85f
React-NativeModulesApple: ae99dc0e80c9027f54572c45635449fbdc36e4f1
React-perflogger: 5f49905de275bac07ac7ea7f575a70611fa988f2
Expand All @@ -1237,13 +1245,13 @@ SPEC CHECKSUMS:
React-RCTText: 4119d9e53ca5db9502b916e1b146e99798986d21
React-RCTVibration: 55bd7c48487eb9a2562f2bd3fdc833274f5b0636
React-rendererdebug: 5fa97ba664806cee4700e95aec42dff1b6f8ea36
React-rncore: 4f57f2049a16b4798ceaf6ba838baa19e1ab79ba
React-rncore: 9bf171b7c278a28410e45e8923c27150bec6f859
React-runtimeexecutor: bb328dbe2865f3a550df0240df8e2d8c3aaa4c57
React-runtimescheduler: 9daefa990db62f8874bc9d6e7e504272c6b6c57f
React-utils: d16c1d2251c088ad817996621947d0ac8167b46c
ReactCommon: 447281ad2034ea3252bf81a60d1f77d5afb0b636
ReactNativeHost: 69c76dddefb1a795780b5292dad8817e2097f9cd
ReactTestApp-DevSupport: 1b9e9c7db30ea26c1cecf0a1d27c88560f053c3e
ReactNativeHost: 6cd1ed318d4137d8e067702461d466c0d0e67422
ReactTestApp-DevSupport: 0a10a887d4de1b16dee5d836998da6b9b90bf535
ReactTestApp-Resources: 857244f3a23f2b3157b364fa06cf3e8866deff9c
RNSVG: 50cf2c7018e57cf5d3522d98d0a3a4dd6bf9d093
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1746675

Please sign in to comment.