Skip to content

Commit cd4c401

Browse files
committed
Merge pull request #66 from ptmt/merge-upstream-0.24.0
Merge upstream@0.24.0
2 parents 78d69d0 + 704fa6c commit cd4c401

File tree

694 files changed

+61026
-5307
lines changed

Some content is hidden

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

694 files changed

+61026
-5307
lines changed

.buckconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2
7+
8+
[alias]
9+
movies = //Examples/Movies/android/app:app
10+
uiexplorer = //Examples/UIExplorer/android/app:app

.eslintrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@
147147
"wrap-iife": 0, // require immediate function invocation to be wrapped in parentheses (off by default)
148148
"yoda": 1, // require or disallow Yoda conditions
149149

150-
// Strict Mode
151-
// These rules relate to using strict mode.
152-
153-
"strict": [2, "global"], // require or disallow the "use strict" pragma in the global scope (off by default in the node environment)
154-
155150
// Variables
156151
// These rules have to do with variable declarations.
157152

.flowconfig

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
# Ignore Website
4949
.*/website/.*
5050

51+
# Ignore generators
52+
.*/local-cli/generator.*
53+
54+
# Ignore BUCK generated folders
55+
.*\.buckd/
56+
5157
.*/node_modules/is-my-json-valid/test/.*\.json
5258
.*/node_modules/iconv-lite/encodings/tables/.*\.json
5359
.*/node_modules/y18n/test/.*\.json
@@ -62,8 +68,9 @@
6268
.*/node_modules/binary-extensions/binary-extensions.json
6369
.*/node_modules/url-regex/tlds.json
6470
.*/node_modules/joi/.*\.json
65-
.*/build/.*\.json
66-
.*/\.buckd/.*
71+
.*/node_modules/isemail/.*\.json
72+
.*/node_modules/tr46/.*\.json
73+
6774

6875
[include]
6976

@@ -86,9 +93,9 @@ suppress_type=$FlowIssue
8693
suppress_type=$FlowFixMe
8794
suppress_type=$FixMe
8895

89-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-2]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
90-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-2]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
96+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-3]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
97+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-3]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
9198
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
9299

93100
[version]
94-
0.22.1
101+
0.23.0

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ project.xcworkspace
2424
# Gradle
2525
/build/
2626
/Examples/**/android/app/build/
27+
/Examples/**/android/app/gradle/
28+
/Examples/**/android/app/gradlew
29+
/Examples/**/android/app/gradlew.bat
2730
/ReactAndroid/build/
2831

2932
# Android
3033
.idea
3134
.gradle
3235
local.properties
3336
*.iml
37+
/android/
3438

3539
# Node
3640
node_modules

.travis.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ osx_image: xcode7.3
44

55
install:
66
- brew reinstall nvm
7-
- mkdir -p .nvm
8-
- export NVM_DIR="$PWD/.nvm"
7+
- mkdir -p /Users/travis/build/facebook/.nvm
8+
- export NVM_DIR="/Users/travis/build/facebook/.nvm"
99
- source $(brew --prefix nvm)/nvm.sh
1010
- nvm install 4.4.0
1111
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
@@ -16,29 +16,16 @@ install:
1616
- npm --version
1717

1818
script:
19-
- |
20-
if [ "$TEST_TYPE" = objc ]
21-
then
22-
travis_retry ./scripts/objc-test.sh
23-
elif [ "$TEST_TYPE" = js ]
24-
then
25-
npm run flow && npm test -- --maxWorkers=1
26-
./scripts/e2e-test.sh --packager
27-
elif [ "$TEST_TYPE" = e2e-objc ]
28-
then
29-
./scripts/e2e-test.sh --osx
30-
else
31-
echo "Unknown test type: $TEST_TYPE"
32-
exit 1
33-
fi
19+
- if [[ "$TEST_TYPE" = objc ]]; then travis_retry ./scripts/objc-test.sh; fi
20+
- if [[ "$TEST_TYPE" = e2e-objc ]]; then travis_retry node ./scripts/run-ci-e2e-tests.js --ios --js; fi
21+
- if [[ "$TEST_TYPE" = js ]]; then npm run flow check; fi
22+
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
3423

3524
env:
3625
matrix:
26+
#- TEST_TYPE=e2e-objc
3727
- TEST_TYPE=objc
3828
- TEST_TYPE=js
39-
global:
40-
#- TEST_TYPE=e2e-objc
41-
4229

4330
branches:
4431
only:

CONTRIBUTING.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ The core team will be monitoring for pull requests. When we get one, we'll run s
1919
1. Fork the repo and create your branch from `master`.
2020
2. **Describe your test plan in your commit.** If you've added code that should be tested, add tests!
2121
3. If you've changed APIs, update the documentation.
22-
4. Add the copyright notice to the top of any new files you've added.
23-
5. Ensure tests pass on Travis and Circle CI.
24-
6. Make sure your code lints (`node linter.js <files touched>`).
25-
7. Squash your commits (`git rebase -i`).
26-
8. If you haven't already, sign the [CLA](https://code.facebook.com/cla).
22+
4. If you've updated the docs, verify the website locally and submit screenshots if applicable
23+
```
24+
$ cd website
25+
$ npm install && npm start
26+
go to: http://localhost:8079/react-native/index.html
27+
```
28+
5. Add the copyright notice to the top of any new files you've added.
29+
6. Ensure tests pass on Travis and Circle CI.
30+
7. Make sure your code lints (`node linter.js <files touched>`).
31+
8. Squash your commits (`git rebase -i`).
32+
9. If you haven't already, sign the [CLA](https://code.facebook.com/cla).
2733

2834
#### Copyright Notice for files
2935

Examples/SimpleChatClient/components/ChatLayout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* @flow */
22
'use strict';
33

4-
var React = require('react-native-desktop');
4+
var React = require('React');
5+
var ReactNative = require('react-native-desktop');
56
var {
67
View,
78
StyleSheet,
@@ -12,7 +13,7 @@ var {
1213
TouchableHighlight,
1314
TextInput,
1415
LayoutAnimation
15-
} = React;
16+
} = ReactNative;
1617

1718
import LoadingIndicator from './LoadingIndicator';
1819
import MessagesListView from './MessagesListView';

Examples/SimpleChatClient/components/SigninForm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* @flow */
22
'use strict';
33

4-
var React = require('react-native-desktop');
4+
var React = require('React');
5+
var ReactNative = require('react-native-desktop');;
56
var {
67
View,
78
Text,
@@ -13,7 +14,7 @@ var {
1314
LinkingIOS,
1415
Image,
1516
Dimensions
16-
} = React;
17+
} = ReactNative;
1718

1819
const AnimatedButton = Animated.createAnimatedComponent(TouchableHighlight);
1920

Examples/SimpleChatClient/components/SuperSimpleMarkdown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/* @noflow */
2-
import React from 'react-native-desktop';
2+
import React from 'react';
3+
import ReactNative from 'react-native-desktop';
34
/* $FlowFixMe(>=17.0.0) - config */
45
import SimpleMarkdown from 'simple-markdown';
56

67
const {
78
View,
89
Text,
910
Image
10-
} = React;
11+
} = ReactNative;
1112

1213
export default class Markdown extends React.Component {
1314

Examples/SimpleChatClient/index.osx.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* @flow */
22
'use strict';
33

4-
import React from 'react-native-desktop';
4+
import React from 'react';
5+
import ReactNative from 'react-native-desktop';
56
import { createStore, applyMiddleware } from 'redux';
67
import { Provider } from 'react-redux';
78
import logger from 'redux-logger';
@@ -39,4 +40,4 @@ class SimpleChatClient extends React.Component {
3940
}
4041

4142

42-
React.AppRegistry.registerComponent('SimpleChatClient', () => SimpleChatClient);
43+
ReactNative.AppRegistry.registerComponent('SimpleChatClient', () => SimpleChatClient);

0 commit comments

Comments
 (0)