Skip to content

Commit d98aa31

Browse files
committed
chore(base): Update base example.
1 parent 600f0f7 commit d98aa31

File tree

6 files changed

+33
-18
lines changed

6 files changed

+33
-18
lines changed

example/base/App.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
import React from 'react';
10-
import type {Node} from 'react';
1110
import {
1211
SafeAreaView,
1312
ScrollView,
@@ -26,7 +25,7 @@ import {
2625
ReloadInstructions,
2726
} from 'react-native/Libraries/NewAppScreen';
2827

29-
const Section = ({children, title}): Node => {
28+
const Section = ({children, title}) => {
3029
const isDarkMode = useColorScheme() === 'dark';
3130
return (
3231
<View style={styles.sectionContainer}>
@@ -52,7 +51,7 @@ const Section = ({children, title}): Node => {
5251
);
5352
};
5453

55-
const App: () => Node = () => {
54+
const App = () => {
5655
const isDarkMode = useColorScheme() === 'dark';
5756

5857
const backgroundStyle = {

example/base/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
https://medium.com/@huntie/a-concise-guide-to-configuring-react-native-with-yarn-workspaces-d7efa71b6906
1+
Base Example
22

3-
https://gist.github.com/huntie/85ea491763b444bfa1bdc8e997fc2765#file-package-json-L12-L21
3+
```bash
4+
cd ios
5+
6+
pod install && cd ..
7+
8+
npm run ios
9+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

example/base/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ SPEC CHECKSUMS:
449449
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
450450
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
451451
FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
452-
FBReactNativeSpec: 530c73e3d695cdd6f15574118a53a9b7b23fd36c
452+
FBReactNativeSpec: 3c8b727e8d4352e56f6ffb6336123f162f54993d
453453
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
454454
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
455455
Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c

example/base/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
"lint": "eslint ."
1111
},
1212
"dependencies": {
13+
"@uiw/react-native": "2.0.2",
1314
"react": "17.0.1",
14-
"react-native": "0.64.2"
15+
"react-native": "0.64.2",
16+
"react-native-svg": "12.1.1"
1517
},
1618
"devDependencies": {
1719
"@babel/core": "7.14.8",

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8232,9 +8232,9 @@ errorhandler@^1.5.0:
82328232
escape-html "~1.0.3"
82338233

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

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

1175011750
jsdom@^16.4.0, jsdom@^16.6.0:
11751-
version "16.6.0"
11752-
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.6.0.tgz#f79b3786682065492a3da6a60a4695da983805ac"
11753-
integrity sha512-Ty1vmF4NHJkolaEmdjtxTfSfkdb8Ywarwf63f+F8/mDD1uLSSWDxDuMiZxiPhwunLrn9LOSVItWj4bLYsLN3Dg==
11751+
version "16.7.0"
11752+
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710"
11753+
integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==
1175411754
dependencies:
1175511755
abab "^2.0.5"
1175611756
acorn "^8.2.4"
@@ -11777,7 +11777,7 @@ jsdom@^16.4.0, jsdom@^16.6.0:
1177711777
whatwg-encoding "^1.0.5"
1177811778
whatwg-mimetype "^2.3.0"
1177911779
whatwg-url "^8.5.0"
11780-
ws "^7.4.5"
11780+
ws "^7.4.6"
1178111781
xml-name-validator "^3.0.0"
1178211782

1178311783
jsesc@^2.5.1:
@@ -19062,7 +19062,7 @@ ws@^6.1.4, ws@^6.2.1:
1906219062
dependencies:
1906319063
async-limiter "~1.0.0"
1906419064

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

0 commit comments

Comments
 (0)