From 1dc45e428489a7de93d9e4fe55c1c58f5c16fbee Mon Sep 17 00:00:00 2001 From: Jakub Szymczak Date: Wed, 6 Nov 2024 14:37:03 +0100 Subject: [PATCH] fix WebExample --- WebExample/App.tsx | 5 +++-- WebExample/babel.config.js | 2 +- WebExample/package.json | 2 +- example/ios/Podfile.lock | 10 +++++----- package-lock.json | 10 +++++----- package.json | 6 +++--- 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/WebExample/App.tsx b/WebExample/App.tsx index 59dc9746..6936d4e1 100644 --- a/WebExample/App.tsx +++ b/WebExample/App.tsx @@ -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); diff --git a/WebExample/babel.config.js b/WebExample/babel.config.js index 23a65e62..cde73953 100644 --- a/WebExample/babel.config.js +++ b/WebExample/babel.config.js @@ -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), }, }, diff --git a/WebExample/package.json b/WebExample/package.json index 77338134..53179cbb 100644 --- a/WebExample/package.json +++ b/WebExample/package.json @@ -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", diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 49a5787c..80b317f5 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -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 @@ -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 @@ -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 diff --git a/package-lock.json b/package-lock.json index d6fcf2fb..0b9a3370 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@expensify/react-native-live-markdown", - "version": "0.1.177", + "version": "0.1.180", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@expensify/react-native-live-markdown", - "version": "0.1.177", + "version": "0.1.180", "license": "MIT", "workspaces": [ - "parser", - "example", - "WebExample" + "./parser", + "./example", + "./WebExample" ], "devDependencies": { "@babel/preset-env": "^7.20.2", diff --git a/package.json b/package.json index 4340dd23..3d5f40cb 100644 --- a/package.json +++ b/package.json @@ -102,9 +102,9 @@ "react-native": "*" }, "workspaces": [ - "parser", - "example", - "WebExample" + "./parser", + "./example", + "./WebExample" ], "engines": { "node": "20.18.0",