Skip to content

Commit 2007040

Browse files
committed
Re init DemoApp with react-native 0.66
1 parent 0e6dac2 commit 2007040

34 files changed

+7181
-24289
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ Before running this app, please prepare environment for React Native (https://re
201201
```sh
202202
git clone [email protected]:inokawa/react-native-react-bridge.git
203203
cd examples/DemoApp
204-
npm install
205-
npm run ios # or npm run android
204+
yarn
205+
yarn ios # or yarn android
206206
```
207207

208208
### Expo

examples/DemoApp/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files
2+
[*.bat]
3+
end_of_line = crlf

examples/DemoApp/.flowconfig

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
; Ignore polyfills
99
node_modules/react-native/Libraries/polyfills/.*
1010

11-
; These should not be required directly
12-
; require from fbjs/lib instead: require('fbjs/lib/warning')
13-
node_modules/warning/.*
14-
1511
; Flow doesn't support platforms
1612
.*/Libraries/Utilities/LoadingView.js
1713

@@ -27,8 +23,9 @@ node_modules/react-native/flow/
2723
[options]
2824
emoji=true
2925

30-
esproposal.optional_chaining=enable
31-
esproposal.nullish_coalescing=enable
26+
exact_by_default=true
27+
28+
format.bracket_spacing=false
3229

3330
module.file_ext=.js
3431
module.file_ext=.json
@@ -44,10 +41,6 @@ suppress_type=$FlowFixMe
4441
suppress_type=$FlowFixMeProps
4542
suppress_type=$FlowFixMeState
4643

47-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
48-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
49-
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
50-
5144
[lints]
5245
sketchy-null-number=warn
5346
sketchy-null-mixed=warn
@@ -58,7 +51,6 @@ deprecated-type=warn
5851
unsafe-getters-setters=warn
5952
unnecessary-invariant=warn
6053
signature-verification-failure=warn
61-
deprecated-utility=error
6254

6355
[strict]
6456
deprecated-type
@@ -70,4 +62,4 @@ untyped-import
7062
untyped-type-import
7163

7264
[version]
73-
^0.122.0
65+
^0.158.0

examples/DemoApp/.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
*.pbxproj -text
1+
# Windows files should use crlf line endings
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
*.bat text eol=crlf

examples/DemoApp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ build/
2828
.gradle
2929
local.properties
3030
*.iml
31+
*.hprof
3132

3233
# node.js
3334
#

examples/DemoApp/.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ module.exports = {
33
jsxBracketSameLine: true,
44
singleQuote: true,
55
trailingComma: 'all',
6+
arrowParens: 'avoid',
67
};

examples/DemoApp/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import webApp from './WebApp';
2121

2222
const App = () => {
2323
const [data, setData] = useState('This is React Native');
24-
const {ref, onMessage, emit} = useBridge((message) => {
24+
const {ref, onMessage, emit} = useBridge(message => {
2525
if (message.type === 'hi') {
2626
setData(message.data);
2727
}
@@ -35,7 +35,7 @@ const App = () => {
3535
<View style={styles.bottom}>
3636
<TextInput
3737
style={styles.input}
38-
onChangeText={(text) => setData(text)}
38+
onChangeText={text => setData(text)}
3939
value={data}
4040
/>
4141
<Pressable
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)