feat(dev): option to render web app inside the mobile app (#1164)

* feat (WIP): render web app inside the mobile app

* fix: web app loading

* chore: build scripts related to mobile web bundle

* feat: show WebView header, which lets to close the WebView

* refactor: remove extra component

* chore: correct type

* chore: remove TODO

Co-authored-by: Mo <mo@standardnotes.com>
This commit is contained in:
Vardan Hakobyan
2022-06-30 13:53:29 +04:00
committed by GitHub
parent cd0859e908
commit 4f5d092f89
13 changed files with 94 additions and 6 deletions

View File

@@ -15,7 +15,8 @@
"lint:fix": "yarn lint --fix",
"format": "prettier ./src",
"format:fix": "yarn format --write",
"build": "yarn android:bundle && yarn install:pods",
"build": "yarn web:bundle && yarn install:pods && yarn android:bundle",
"web:bundle": "cp -r ../web/dist/. html/Web.bundle/src/web-src/",
"pods": "yarn install:pods",
"tsc": "tsc --noEmit",
"start": "react-native start",
@@ -43,6 +44,7 @@
"@standardnotes/sncrypto-common": "1.9.0",
"@standardnotes/snjs": "^2.118.3",
"@standardnotes/stylekit": "5.29.3",
"@standardnotes/web": "workspace:^",
"@types/styled-components-react-native": "5.1.3",
"js-base64": "^3.7.2",
"moment": "^2.29.2",