Skip to content

Commit

Permalink
chore(base): Update base example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 2, 2021
1 parent 600f0f7 commit d98aa31
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 18 deletions.
5 changes: 2 additions & 3 deletions example/base/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import React from 'react';
import type {Node} from 'react';
import {
SafeAreaView,
ScrollView,
Expand All @@ -26,7 +25,7 @@ import {
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';

const Section = ({children, title}): Node => {
const Section = ({children, title}) => {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.sectionContainer}>
Expand All @@ -52,7 +51,7 @@ const Section = ({children, title}): Node => {
);
};

const App: () => Node = () => {
const App = () => {
const isDarkMode = useColorScheme() === 'dark';

const backgroundStyle = {
Expand Down
10 changes: 8 additions & 2 deletions example/base/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
https://medium.com/@huntie/a-concise-guide-to-configuring-react-native-with-yarn-workspaces-d7efa71b6906
Base Example

https://gist.github.com/huntie/85ea491763b444bfa1bdc8e997fc2765#file-package-json-L12-L21
```bash
cd ios

pod install && cd ..

npm run ios
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/base/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
FBReactNativeSpec: 530c73e3d695cdd6f15574118a53a9b7b23fd36c
FBReactNativeSpec: 3c8b727e8d4352e56f6ffb6336123f162f54993d
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
Expand Down
4 changes: 3 additions & 1 deletion example/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"lint": "eslint ."
},
"dependencies": {
"@uiw/react-native": "2.0.2",
"react": "17.0.1",
"react-native": "0.64.2"
"react-native": "0.64.2",
"react-native-svg": "12.1.1"
},
"devDependencies": {
"@babel/core": "7.14.8",
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8232,9 +8232,9 @@ errorhandler@^1.5.0:
escape-html "~1.0.3"

es-abstract@^1.17.2, es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2, es-abstract@^1.18.2:
version "1.18.4"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.4.tgz#c6b7a1acd6bb1c8b5afeb54a53c46ad02fab346d"
integrity sha512-xjDAPJRxKc1uoTkdW8MEk7Fq/2bzz3YoCADYniDV7+KITCUdu9c90fj1aKI7nEZFZxRrHlDo3wtma/C6QkhlXQ==
version "1.18.5"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.5.tgz#9b10de7d4c206a3581fd5b2124233e04db49ae19"
integrity sha512-DDggyJLoS91CkJjgauM5c0yZMjiD1uK3KcaCeAmffGwZ+ODWzOkPN4QwRbsK5DOFf06fywmyLci3ZD8jLGhVYA==
dependencies:
call-bind "^1.0.2"
es-to-primitive "^1.2.1"
Expand Down Expand Up @@ -11684,9 +11684,9 @@ jetifier@^1.6.2:
integrity sha512-3Zi16h6L5tXDRQJTb221cnRoVG9/9OvreLdLU2/ZjRv/GILL+2Cemt0IKvkowwkDpvouAU1DQPOJ7qaiHeIdrw==

joi@^17.2.1:
version "17.4.1"
resolved "https://registry.yarnpkg.com/joi/-/joi-17.4.1.tgz#15d2f23c8cbe4d1baded2dd190c58f8dbe11cca0"
integrity sha512-gDPOwQ5sr+BUxXuPDGrC1pSNcVR/yGGcTI0aCnjYxZEa3za60K/iCQ+OFIkEHWZGVCUcUlXlFKvMmrlmxrG6UQ==
version "17.4.2"
resolved "https://registry.yarnpkg.com/joi/-/joi-17.4.2.tgz#02f4eb5cf88e515e614830239379dcbbe28ce7f7"
integrity sha512-Lm56PP+n0+Z2A2rfRvsfWVDXGEWjXxatPopkQ8qQ5mxCEhwHG+Ettgg5o98FFaxilOxozoa14cFhrE/hOzh/Nw==
dependencies:
"@hapi/hoek" "^9.0.0"
"@hapi/topo" "^5.0.0"
Expand Down Expand Up @@ -11748,9 +11748,9 @@ jscodeshift@^0.11.0:
write-file-atomic "^2.3.0"

jsdom@^16.4.0, jsdom@^16.6.0:
version "16.6.0"
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.6.0.tgz#f79b3786682065492a3da6a60a4695da983805ac"
integrity sha512-Ty1vmF4NHJkolaEmdjtxTfSfkdb8Ywarwf63f+F8/mDD1uLSSWDxDuMiZxiPhwunLrn9LOSVItWj4bLYsLN3Dg==
version "16.7.0"
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710"
integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==
dependencies:
abab "^2.0.5"
acorn "^8.2.4"
Expand All @@ -11777,7 +11777,7 @@ jsdom@^16.4.0, jsdom@^16.6.0:
whatwg-encoding "^1.0.5"
whatwg-mimetype "^2.3.0"
whatwg-url "^8.5.0"
ws "^7.4.5"
ws "^7.4.6"
xml-name-validator "^3.0.0"

jsesc@^2.5.1:
Expand Down Expand Up @@ -19062,7 +19062,7 @@ ws@^6.1.4, ws@^6.2.1:
dependencies:
async-limiter "~1.0.0"

ws@^7, ws@^7.4.5:
ws@^7, ws@^7.4.6:
version "7.5.3"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74"
integrity sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==
Expand Down

0 comments on commit d98aa31

Please sign in to comment.