Skip to content

Commit 49df1cb

Browse files
author
Edoardo Moreni
committed
Merge pull request #1 from facebook/master
Updating fork
2 parents ea4ea90 + b12117a commit 49df1cb

493 files changed

Lines changed: 10552 additions & 5799 deletions

File tree

Some content is hidden

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

.flowconfig

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@
77
# Some modules have their own node_modules with overlap
88
.*/node_modules/node-haste/.*
99

10-
# Ignore react-tools where there are overlaps, but don't ignore anything that
11-
# react-native relies on
12-
.*/node_modules/react-tools/src/React.js
13-
.*/node_modules/react-tools/src/renderers/shared/event/EventPropagators.js
14-
.*/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js
15-
.*/node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js
10+
# Ignore react and fbjs where there are overlaps, but don't ignore
11+
# anything that react-native relies on
12+
.*/node_modules/fbjs-haste/.*/__tests__/.*
13+
.*/node_modules/fbjs-haste/__forks__/Map.js
14+
.*/node_modules/fbjs-haste/__forks__/Promise.js
15+
.*/node_modules/fbjs-haste/__forks__/fetch.js
16+
.*/node_modules/fbjs-haste/core/ExecutionEnvironment.js
17+
.*/node_modules/fbjs-haste/core/isEmpty.js
18+
.*/node_modules/fbjs-haste/crypto/crc32.js
19+
.*/node_modules/fbjs-haste/stubs/ErrorUtils.js
20+
.*/node_modules/react-haste/React.js
21+
.*/node_modules/react-haste/renderers/dom/ReactDOM.js
22+
.*/node_modules/react-haste/renderers/shared/event/eventPlugins/ResponderEventPlugin.js
1623

1724
# Ignore commoner tests
1825
.*/node_modules/commoner/test/.*
@@ -43,9 +50,9 @@ suppress_type=$FlowIssue
4350
suppress_type=$FlowFixMe
4451
suppress_type=$FixMe
4552

46-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-7]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
47-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-7]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
53+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
54+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
4855
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
4956

5057
[version]
51-
0.17.0
58+
0.18.1

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,4 @@ env:
8282
branches:
8383
only:
8484
- master
85+
- /^.*-stable$/

Examples/2048/2048/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
5656
launchOptions:launchOptions];
5757

5858
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
59-
UIViewController *rootViewController = [[UIViewController alloc] init];
59+
UIViewController *rootViewController = [UIViewController new];
6060
rootViewController.view = rootView;
6161
self.window.rootViewController = rootViewController;
6262
[self.window makeKeyAndVisible];

Examples/Movies/Movies/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
5757
launchOptions:launchOptions];
5858

5959
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
60-
UIViewController *rootViewController = [[UIViewController alloc] init];
60+
UIViewController *rootViewController = [UIViewController new];
6161
rootViewController.view = rootView;
6262
self.window.rootViewController = rootViewController;
6363
[self.window makeKeyAndVisible];

Examples/Movies/android/app/src/main/java/com/facebook/react/movies/MoviesActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected void onResume() {
6969
super.onResume();
7070

7171
if (mReactInstanceManager != null) {
72-
mReactInstanceManager.onResume(this);
72+
mReactInstanceManager.onResume(this, this);
7373
}
7474
}
7575

Examples/TicTacToe/TicTacToe/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
5656
launchOptions:launchOptions];
5757

5858
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
59-
UIViewController *rootViewController = [[UIViewController alloc] init];
59+
UIViewController *rootViewController = [UIViewController new];
6060
rootViewController.view = rootView;
6161
self.window.rootViewController = rootViewController;
6262
[self.window makeKeyAndVisible];

Examples/UIExplorer/ActionSheetIOSExample.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ var {
2424
} = React;
2525

2626
var BUTTONS = [
27-
'Button Index: 0',
28-
'Button Index: 1',
29-
'Button Index: 2',
27+
'Option 0',
28+
'Option 1',
29+
'Option 2',
3030
'Destruct',
3131
'Cancel',
3232
];
@@ -47,7 +47,7 @@ var ActionSheetExample = React.createClass({
4747
Click to show the ActionSheet
4848
</Text>
4949
<Text>
50-
Clicked button at index: "{this.state.clicked}"
50+
Clicked button: {this.state.clicked}
5151
</Text>
5252
</View>
5353
);

Examples/UIExplorer/AlertIOSExample.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class PromptExample extends React.Component {
132132

133133
<TouchableHighlight
134134
style={styles.wrapper}
135-
onPress={this.prompt.bind(this, this.title, this.promptResponse)}>
135+
onPress={this.prompt.bind(this, this.title, null, null, this.promptResponse)}>
136136

137137
<View style={styles.button}>
138138
<Text>
@@ -143,7 +143,7 @@ class PromptExample extends React.Component {
143143

144144
<TouchableHighlight
145145
style={styles.wrapper}
146-
onPress={this.prompt.bind(this, this.title, this.buttons)}>
146+
onPress={this.prompt.bind(this, this.title, null, this.buttons, null)}>
147147

148148
<View style={styles.button}>
149149
<Text>
@@ -154,7 +154,7 @@ class PromptExample extends React.Component {
154154

155155
<TouchableHighlight
156156
style={styles.wrapper}
157-
onPress={this.prompt.bind(this, this.title, this.defaultValue, this.promptResponse)}>
157+
onPress={this.prompt.bind(this, this.title, this.defaultValue, null, this.promptResponse)}>
158158

159159
<View style={styles.button}>
160160
<Text>
@@ -165,7 +165,7 @@ class PromptExample extends React.Component {
165165

166166
<TouchableHighlight
167167
style={styles.wrapper}
168-
onPress={this.prompt.bind(this, this.title, this.defaultValue, this.buttons)}>
168+
onPress={this.prompt.bind(this, this.title, this.defaultValue, this.buttons, null)}>
169169

170170
<View style={styles.button}>
171171
<Text>

Examples/UIExplorer/BorderExample.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ var styles = StyleSheet.create({
9191
width: 100,
9292
height: 100
9393
},
94+
border8: {
95+
width: 60,
96+
height: 60,
97+
borderColor: 'black',
98+
marginRight: 10,
99+
backgroundColor: 'lightgrey',
100+
},
94101
});
95102

96103
exports.title = 'Border';
@@ -159,4 +166,18 @@ exports.examples = [
159166
);
160167
}
161168
},
169+
{
170+
title: 'Single Borders',
171+
description: 'top, left, bottom right',
172+
render() {
173+
return (
174+
<View style={{flexDirection: 'row'}}>
175+
<View style={[styles.box, styles.border8, {borderTopWidth: 5}]} />
176+
<View style={[styles.box, styles.border8, {borderLeftWidth: 5}]} />
177+
<View style={[styles.box, styles.border8, {borderBottomWidth: 5}]} />
178+
<View style={[styles.box, styles.border8, {borderRightWidth: 5}]} />
179+
</View>
180+
);
181+
}
182+
},
162183
];

Examples/UIExplorer/ModalExample.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ var styles = StyleSheet.create({
143143
},
144144
innerContainer: {
145145
borderRadius: 10,
146+
alignItems: 'center',
146147
},
147148
row: {
148149
alignItems: 'center',
@@ -158,6 +159,7 @@ var styles = StyleSheet.create({
158159
borderRadius: 5,
159160
flex: 1,
160161
height: 44,
162+
alignSelf: 'stretch',
161163
justifyContent: 'center',
162164
overflow: 'hidden',
163165
},

0 commit comments

Comments
 (0)