Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit 1df3b4e

Browse files
authored
Merge pull request #63 from peterp/pp-update-example
Update to latest version of React Native.
2 parents 8146e09 + 1d00e5a commit 1df3b4e

File tree

69 files changed

+8235
-15944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+8235
-15944
lines changed
File renamed without changes.
File renamed without changes.

examples/ReactNativeTagsDemo/.flowconfig renamed to examples/Demo_RN_v63_2/.flowconfig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ node_modules/warning/.*
2121
[include]
2222

2323
[libs]
24-
node_modules/react-native/Libraries/react-native/react-native-interface.js
24+
node_modules/react-native/interface.js
2525
node_modules/react-native/flow/
2626

2727
[options]
@@ -36,9 +36,8 @@ module.file_ext=.ios.js
3636

3737
munge_underscores=true
3838

39-
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
4039
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
41-
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
40+
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
4241

4342
suppress_type=$FlowIssue
4443
suppress_type=$FlowFixMe
@@ -57,7 +56,6 @@ untyped-type-import=warn
5756
nonstrict-import=warn
5857
deprecated-type=warn
5958
unsafe-getters-setters=warn
60-
inexact-spread=warn
6159
unnecessary-invariant=warn
6260
signature-verification-failure=warn
6361
deprecated-utility=error
@@ -72,4 +70,4 @@ untyped-import
7270
untyped-type-import
7371

7472
[version]
75-
^0.105.0
73+
^0.122.0
File renamed without changes.

examples/ReactNativeTagsDemo/App.js renamed to examples/Demo_RN_v63_2/App.js

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
/**
2-
* Sample React Native App
3-
* https://github.com/facebook/react-native
4-
*
5-
* @format
6-
* @flow
7-
*/
1+
import React, { Component } from 'react';
82

9-
import React, {Component} from 'react';
10-
11-
import {StyleSheet, TouchableOpacity, Text, View} from 'react-native';
12-
import Tags from 'react-native-tags';
3+
import { StyleSheet, TouchableOpacity, Text, View } from 'react-native';
4+
import Tags from '../../Tags';
135

146
class App extends Component {
157
constructor(props) {
@@ -20,7 +12,7 @@ class App extends Component {
2012
};
2113
}
2214

23-
_renderTag = ({tag, index, onPress, deleteTagOnPress, readonly}) => {
15+
renderTag = ({ tag, index, onPress, deleteTagOnPress, readonly }) => {
2416
return (
2517
<TouchableOpacity
2618
key={`${tag}-${index}`}
@@ -43,20 +35,20 @@ class App extends Component {
4335
}}
4436
inputStyle={styles.input}
4537
initialTags={this.state.initialTags}
46-
onChangeTags={this._onChangeTags}
47-
onTagPress={this._onTagPress}
48-
renderTag={this._renderTag}
38+
onChangeTags={this.onChangeTags}
39+
onTagPress={this.onTagPress}
40+
renderTag={this.renderTag}
4941
/>
5042
</View>
5143
);
5244
}
5345

54-
_onTagPress = (index, tagLabel, event, deleted) => {
46+
onTagPress = (index, tagLabel, event, deleted) => {
5547
console.log(index, tagLabel, event, deleted ? 'deleted' : 'not deleted');
5648
};
5749

58-
_onChangeTags = tags => {
59-
this.setState({initialTags: tags});
50+
onChangeTags = tags => {
51+
this.setState({ initialTags: tags });
6052
};
6153
}
6254

examples/ReactNativeTagsDemo/android/app/_BUCK renamed to examples/Demo_RN_v63_2/android/app/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ android_library(
3535

3636
android_build_config(
3737
name = "build_config",
38-
package = "com.reactnativetagsdemo",
38+
package = "com.demo_rn_v63_2",
3939
)
4040

4141
android_resource(
4242
name = "res",
43-
package = "com.reactnativetagsdemo",
43+
package = "com.demo_rn_v63_2",
4444
res = "src/main/res",
4545
)
4646

0 commit comments

Comments
 (0)