Skip to content

Commit

Permalink
fix WebExample
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Nov 6, 2024
1 parent cc65cbb commit 1dc45e4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
5 changes: 3 additions & 2 deletions WebExample/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import App from '../example/src/App';
import App from '@expensify/react-native-live-markdown-example/src/App';
import {registerRootComponent} from 'expo';

export default App;
registerRootComponent(App);
2 changes: 1 addition & 1 deletion WebExample/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function (api) {
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
react: path.join(__dirname, 'node_modules', 'react'),
'react-native': path.join(__dirname, 'node_modules', 'react-native-web'),
'react-native': path.join(__dirname, '..', 'node_modules', 'react-native-web'),
[pak.name]: path.join(__dirname, '..', pak.source),
},
},
Expand Down
2 changes: 1 addition & 1 deletion WebExample/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webexample",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"main": "App.tsx",
"scripts": {
"start": "expo start",
"android": "expo start --android",
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ PODS:
- React-logger (= 0.75.2)
- React-perflogger (= 0.75.2)
- React-utils (= 0.75.2)
- RNLiveMarkdown (0.1.177):
- RNLiveMarkdown (0.1.180):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1517,9 +1517,9 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNLiveMarkdown/newarch (= 0.1.177)
- RNLiveMarkdown/newarch (= 0.1.180)
- Yoga
- RNLiveMarkdown/newarch (0.1.177):
- RNLiveMarkdown/newarch (0.1.180):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1805,9 +1805,9 @@ SPEC CHECKSUMS:
React-utils: 81a715d9c0a2a49047e77a86f3a2247408540deb
ReactCodegen: 4eedb2fdd079174d6fc3c80b1cccafbe4ff1be8d
ReactCommon: 6ef348087d250257c44c0204461c03f036650e9b
RNLiveMarkdown: 5ac0c85d6fed8b3241f2115aee020ba3f406a4af
RNLiveMarkdown: fc07b203a3ed832e2e5d3950e69cd4fc3b0568b6
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
Yoga: 2a45d7e59592db061217551fd3bbe2dd993817ae
Yoga: a1d7895431387402a674fd0d1c04ec85e87909b8

PODFILE CHECKSUM: 9b81b0f7bfba9e6fb4fa10efe8319f7860794e08

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
"react-native": "*"
},
"workspaces": [
"parser",
"example",
"WebExample"
"./parser",
"./example",
"./WebExample"
],
"engines": {
"node": "20.18.0",
Expand Down

0 comments on commit 1dc45e4

Please sign in to comment.