Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IP detection on Mac with loopback #12875

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
367 commits
Select commit Hold shift + click to select a range
a34956f
Remove `copyProperties`
davidaurelio Mar 21, 2017
2b4762f
Only use `EventValidator` in development mode
davidaurelio Mar 21, 2017
4797701
packager: clear cache
Mar 21, 2017
314ec87
Remove unused CxxMessageQueue
javache Mar 21, 2017
1433185
Improved implementation of placeholer feature in RCTUITextView
shergin Mar 21, 2017
ee245b9
Fix instrumentation tests for api 22
ayc1 Mar 21, 2017
a030432
Remove Navigator recommendation
hramos Mar 21, 2017
68c655a
Update ISSUE_TEMPLATE.md
hramos Mar 21, 2017
ba75d99
don't call clearFrameCallback() if we don't have a ReactChoreographer…
aaronechiu Mar 21, 2017
c41b29d
Fixes missleading comment on getInitialURL
jeremistadler Mar 21, 2017
d9ac007
Make the choice of bridge based on an optional delegate method
mhorowitz Mar 22, 2017
ba149d7
Tease apart React and RCTBatchedBridge targets
mhorowitz Mar 22, 2017
462352e
add jest snapshot tests
sahrens Mar 22, 2017
edd5624
invariants around scrollToIndex without getItemLayout
sahrens Mar 22, 2017
7861fdd
Componentize Spindicator and add to SectionListExample
sahrens Mar 22, 2017
72670bf
support sticky headers
sahrens Mar 22, 2017
5c85615
Kill shouldItemUpdate
sahrens Mar 22, 2017
1531f5f
change section-specific SeparatorComponent -> ItemSeparatorComponent …
sahrens Mar 22, 2017
46d6766
useful error when switching numColumns on the fly
sahrens Mar 22, 2017
93c438d
Fix nodeHandle crash
sahrens Mar 22, 2017
f39ef36
Update FlatList doc
sunnylqm Mar 22, 2017
0ea1ea5
Remove unused websocket-executor-name and websocket-executor-port opt…
javache Mar 22, 2017
005fbe6
Fix PerformanceLogger clearing unfinished events
javache Mar 22, 2017
9506376
Add flow typing to PerformanceLogger
javache Mar 22, 2017
54989d0
Lock version to 2.7.5 to avoid breakage like #12772
brentvatne Mar 22, 2017
d5288e7
packager: GlobalTransformCache-test: disable non-deterministic test
Mar 22, 2017
ebd8b2a
packager: Package.js: make read()-based API sync
Mar 22, 2017
e22898b
Refactor measuring app require time
alexeylang Mar 22, 2017
5eb954f
packager: Module.js: make read()-based API sync
Mar 22, 2017
ef3db66
Added deprecation warning for View.* static accessibility traits acce…
Mar 22, 2017
379b60d
Fix ClassCastException in ReactModuleSpecProcessor
Mar 22, 2017
909d2e5
packager: Package.js: cover the error cases
Mar 22, 2017
3054842
packager: Module.js: cover the error cases
Mar 22, 2017
d9910a5
Use checkPropTypes instead of directly calling PropTypes
acdlite Mar 22, 2017
14c31d9
Remove React addons from react-native-implementation
janicduplessis Mar 23, 2017
703936d
Sync React master (and 16 alpha 4)
Mar 23, 2017
971c2be
Remove duplicate flow ignore
janicduplessis Mar 23, 2017
8a8f34a
Improve dark mode for debugger
Mar 23, 2017
720e195
Picker (android): Convert children to an array before accessing with …
justim Mar 23, 2017
a2cfea1
Fix usages of ReactComponentWithPureRenderMixin
javache Mar 23, 2017
53905a5
ReactNative moved View.propTypes to ViewPropTypes
Mar 23, 2017
123311c
Update GettingStarted.md
hoangpeterd Mar 23, 2017
333dd59
ReactNativeFiber findNodeHandle() bugfix
Mar 23, 2017
04ccbdd
Move NetworkRecordingModuleMock into testing/network
ayc1 Mar 23, 2017
1091868
Fix grammar in the "Running on a device" docs
hramos Mar 23, 2017
f06384b
packager: ResolutionRequest.js: _loadAsDir and _loadAsFile sync
Mar 23, 2017
3f0f735
packager: ResolutionRequest.js: sync _resolveFileOrDir
Mar 23, 2017
337daa3
packager: ResolutionRequest.js: sync _resolveHasteDependency()
Mar 23, 2017
53f9e6a
Update ISSUE_TEMPLATE.md
hramos Mar 23, 2017
1f15c75
Fix broken icons in Safari
hramos Mar 23, 2017
9d377e9
Fix warnings in React.xcodeproj
javache Mar 23, 2017
3df654e
Integrare UNUserNotification
gperdomor Mar 23, 2017
dcf3cbe
Clean up some of the ReactNative Buck rules
mzlee Mar 23, 2017
20ba987
packager: TerminalReporter: stop reporting global cache errors
Mar 23, 2017
7c9173b
Enable -Wimplicit-retain-self en sync warning config for all projects
javache Mar 23, 2017
d868e86
Deploy v0.42.0
gabelevi Mar 23, 2017
febf3d0
Remove Deprecated NavigationExperimental
Mar 24, 2017
9a88c72
Exposed new ViewPropTypes object on ReactNative renderer (stack and f…
Mar 24, 2017
f891985
Update runAndroid.js to fix startServerInNewWindow() (Windows)
jrodiger Mar 24, 2017
de8ce45
Ran codemod to replace View.propTypes with ViewPropTypes
Mar 24, 2017
ff7fb6e
Allow overrides of NativeModules
javache Mar 24, 2017
893689c
Fix buck build
ayc1 Mar 24, 2017
3f46e59
Fix crash when overriding native modules on RCTJSCExecutor
javache Mar 24, 2017
820c8e2
Instrumentation test for PokesDashboardApp
ayc1 Mar 24, 2017
d2fc08d
Move classic relay into oss packages
leebyron Mar 24, 2017
77d52fe
Remove old examples from RN repo
Mar 24, 2017
ff4468a
Re-License Lists with standard React Native License
Mar 24, 2017
8ff813e
Fix license header on websocket_integration_test_server
Mar 24, 2017
09fe999
Fix license headers on SwipableRow
Mar 24, 2017
c87c4d0
Fixed previously broken support for negative `scale` (`transform` sty…
skv-headless Mar 25, 2017
27c3e32
FrameRateLogger JS module
sahrens Mar 25, 2017
94d93f7
PositionError must be an object, not string
dabit1 Mar 25, 2017
30778b6
Update RunningOnDevice.md
hramos Mar 25, 2017
848593c
Moved takeSnapshot method from UIManager to ReactNative
Mar 25, 2017
e2204c5
measure delay of calling into UI thread when setting up ReactContext
aaronechiu Mar 25, 2017
73c85e4
RN: Cleanup Flow / Jest / Metro Configs
yungsters Mar 26, 2017
3b28644
Fix broken references in website, moved lists, remove navigator
Mar 27, 2017
d2939ea
Fix crash when move on the edge of some phones like HUAWEI P9
Mar 27, 2017
b96e210
packager: ResolutionRequest.js: sync _resolveNodeDependency()
Mar 27, 2017
e0ad425
packager: ResolutionRequest.js: resolveDependency() now sync
Mar 27, 2017
af34c34
Fix license header for TVEventHandler
Mar 27, 2017
7aa2c9a
NavigatorIOS - Remove NavigationContext
Mar 27, 2017
87b0378
Native Animated - Restore, reorganize and add new tests
janicduplessis Mar 27, 2017
8706b66
Include ios-cc.sh in the package.
mhorowitz Mar 27, 2017
92d985f
Deprecate Navigator
Mar 27, 2017
6f9447e
React sync (16 beta 6 plus addons)
Mar 27, 2017
acc1edd
expand example with `PureComponent` usage, explicit `extraData` prop,…
sahrens Mar 28, 2017
c9fae2f
Native Animated - Restore default values when removing props on iOS
janicduplessis Mar 28, 2017
ec5baf0
Fix cxx bridge headers when archiving
janicduplessis Mar 28, 2017
7de59b1
Support calls through MessageQueue when interecting with JSValue dire…
javache Mar 28, 2017
bb48c0c
Manually inline parseErrorStack
javache Mar 28, 2017
fb54a1e
Native Animated - Fix timing animation delay on iOS
janicduplessis Mar 28, 2017
1d37dd0
Native Animated - Add tests on iOS
janicduplessis Mar 28, 2017
33000c7
packager: GlobalTransformCache: retry keys fetches
Mar 28, 2017
f46fd36
NativeAnimated - Fix missing update at the end of the batch
janicduplessis Mar 28, 2017
01215c0
Re-added null inst check to avoid EventPropagators bug
Mar 28, 2017
777e80a
Remove CustomComponents folder and license
Mar 28, 2017
1129c60
Replaced View.propTypes with a static getter that warned about deprec…
Mar 28, 2017
4bf2d8c
Set hasNewLayout on children when changing their layout due to displa…
Mar 28, 2017
63035a4
replace string comparison with enum
BruinBear Mar 28, 2017
fd6f222
Update GettingStarted.md (Windows Packager)
jrodiger Mar 29, 2017
436a9a5
Optimize ReactShadowNode by more manually converting between string a…
Mar 29, 2017
696b49e
RN: Refactor Chrome Debugger JS
yungsters Mar 29, 2017
5643bbc
RN: Add "Maintain Priority" Checkbox
yungsters Mar 29, 2017
22a4205
onEndReached should clear when data changes
sahrens Mar 29, 2017
a85a86b
Fix tvOS build
janicduplessis Mar 29, 2017
f804af2
Make bridge load module lazy
Mar 29, 2017
50a6c49
Expose UseWebDefaults to java
Mar 29, 2017
673093e
Set web defaults when resetting
Mar 29, 2017
c233191
Animated - Add missing super calls to fix native animated crash
janicduplessis Mar 29, 2017
1d36700
Improve feel of scroll snapping behavior on iOS
sophiebits Mar 29, 2017
c311096
The width and height should be in the revsersed order.
Mar 29, 2017
56a4538
Update documentation for Modal's prop animationType
elieteyssedou Mar 29, 2017
140c5f6
Make run-ios --device example copy-pastable
bhelx Mar 29, 2017
704b662
Update ReactNative site docgen to handle ViewPropTypes
Mar 29, 2017
a7633af
Add UIExplorer to manual testing script.
sahrens Mar 29, 2017
759b8cc
Don't transfer layout outputs to java for nodes which don't have a ne…
woehrl01 Mar 29, 2017
7f34697
@allow-large-files @ignore-conflict-markers[i18n] translation auto-up…
Mar 29, 2017
5012f89
@allow-large-files @ignore-conflict-markers[i18n] translation auto-up…
Mar 29, 2017
9a59601
@allow-large-files @ignore-conflict-markers[i18n] translation auto-up…
Mar 29, 2017
944adb7
@allow-large-files [i18n] remove unused generated strings.xml files o…
Mar 29, 2017
8c7b32d
Container Testing Updates
nicktate Mar 30, 2017
b6f1a3b
@allow-large-files @ignore-conflict-markers[i18n] translation auto-up…
Mar 30, 2017
c21760a
@allow-large-files @ignore-conflict-markers[i18n] translation auto-up…
Mar 30, 2017
7f35abb
@allow-large-files @ignore-conflict-markers[i18n] translation auto-up…
Mar 30, 2017
12de972
@allow-large-files [i18n] remove unused generated strings.xml files o…
Mar 30, 2017
5af3038
Improve fbsystrace support
javache Mar 30, 2017
f675434
Merge RCTPlatform.isTesting and RCTRunningInTestEnvironment
javache Mar 30, 2017
c31a656
Add comma to prevent build error when react.gradle is uncommented
samcorcos Mar 30, 2017
e82c2fb
Add OSS website test, clean up test names, remove website dependency …
Mar 30, 2017
f36664f
Upgrade glob to v7.1.1
hawkrives Mar 30, 2017
5be8d5f
Update xcode dependency from 0.8.9 -> 0.9.1
joonhocho Mar 30, 2017
7773f25
move us off AsyncTask
aaronechiu Mar 30, 2017
7db16a4
Remove RelayFBPreloadedModules, error on overlapping modules
javache Mar 30, 2017
d4aa42a
Show more meaningful error stack in ReactNative redbox
Mar 31, 2017
5f5da4e
Add support for custom log reporter cli option for local server
brentvatne Mar 31, 2017
0b2ac0a
Support narrower module dependencies
mhorowitz Mar 31, 2017
1916b38
Support passing a collection of native modules to JSContext
mhorowitz Mar 31, 2017
ec4b854
Allow DeviceInfoModule to be instantiated with only an android Context
mhorowitz Mar 31, 2017
b80e2c8
Move packager initialization events to reporter
brentvatne Mar 31, 2017
01a0e10
Make SystraceRequestListener extend BaseRequestListener
kirwan Mar 31, 2017
8daf985
match plist indentation with xcode format
koenpunt Mar 31, 2017
e12e57e
Move bindKeys to RCTBridge setUp
javache Mar 31, 2017
b133d06
Disable flaky PropertiesUpdateTest
javache Mar 31, 2017
8e925d5
Update Images.md
vivaxy Mar 31, 2017
7664c27
Temporarily disable Android instrumentation tests
hramos Mar 31, 2017
3ef2055
packager: sync Module#read()
Mar 31, 2017
ec68c97
Add iOS Linking location example to docs
viktorsec Mar 31, 2017
175e77d
break dependency between JSPackagerClient.RequestHandler and WebSocke…
cwdick Mar 31, 2017
9219072
Clean up and remove duplicate code in Travis iOS/tvOS test scripts
douglowder Mar 31, 2017
9075fe0
Fix crash in `RCTJSStackFrame::stackFrameWithDictionary:`
terribleben Mar 31, 2017
7ff18f2
Fix Warning/Yellow Box so it does not mess up app layout when opened.
sahrens Apr 1, 2017
edbb48c
Replacing all instances of [UIApplication sharedApplication] wi…
shrutic Apr 1, 2017
f1371ec
Don't transfer layout outputs to java for unset edges
woehrl01 Apr 1, 2017
e1466da
RN: Options to Preload Bundles on Startup
yungsters Apr 2, 2017
4bd7dc0
packager: TransformCache: do not rehash transformOptions every single…
Apr 3, 2017
cc2ec6f
packager: TransformCache: use sha1 instead of murmurhash
Apr 3, 2017
dcecfa3
Make CLI executable configurable
grabbou Apr 3, 2017
b4da59e
Fix file indentation
davidaurelio Apr 3, 2017
d38644e
Add Atom Beta to launchEditor
jhen0409 Apr 3, 2017
dfaa03e
Fixes "guesture" typo in PanResponser docs
AndrewIngram Apr 3, 2017
0ec984e
Optimize log print by using html format
woehrl01 Apr 3, 2017
a51e9a0
Adapt interface of node-haste duplicates
davidaurelio Apr 3, 2017
10cb0f9
Disable all of RCTRootViewIntegrationTests
javache Apr 3, 2017
8a760e0
Code analysis bot does not need to comment on merge commits
tqc Apr 3, 2017
beb559d
Fix xcode project file
Apr 3, 2017
bc1ea54
Better TextInput: Simplified focus/first-responder management on iOS
shergin Apr 3, 2017
f186cfb
Allow override of `scrollEventThrottle` (in case `useNativeDriver` is…
sahrens Apr 4, 2017
e8f9c44
Fix separator keys for LayoutAnimation
sahrens Apr 4, 2017
128596b
Fixup comments to indicate sticky headers are now supported
sahrens Apr 4, 2017
87bdcbd
propagate getScrollResponder, getScrollableNode
sahrens Apr 4, 2017
ecf4c48
Add `scrollToLocation` for `SectionList`
sahrens Apr 4, 2017
e0bd35f
Fix order of timers called in the same frame
javache Apr 4, 2017
b12f6db
fix crash with onEndReached={null}
sahrens Apr 4, 2017
03892d1
packager: GlobalTransformCache: retry 502 and 503 HTTP statuses
Apr 4, 2017
8755338
packager: get rid of type `any` in ResolutionRequest
Apr 4, 2017
e91cd2e
Make clear that onSlidingComplete is called regardless whether value …
beausmith Apr 4, 2017
6a81de3
Add YGEnums to tvOS build
douglowder Apr 4, 2017
058a540
Add UberEATS article to showcase
hramos Apr 4, 2017
0fe0fc0
Make copy button work on android emulator in Linux using xsel
saigrandhi Apr 4, 2017
c128612
A proxy so a singleton CxxModule can be shared by multiple ModuleRegi…
javache Apr 4, 2017
67e54f8
Add YGEnums to fix gradle build
Apr 4, 2017
77c19cc
Use tag ids for testID
ayc1 Apr 4, 2017
40eb353
Minor adjustments to the mobile site
Apr 4, 2017
f8e583b
clean out the last used bitmap
aaronechiu Apr 4, 2017
9c5cc14
Fixwebsite
Apr 4, 2017
c0b64ce
use Log.d instead of Log.w in CatalystInstanceImpl.java
aaronechiu Apr 4, 2017
eb300b6
Revert D4770368: [rn] Use tag ids for testID
ayc1 Apr 4, 2017
ff95805
Fix YGEnums references in ReactCxx.xcodeproj
javache Apr 4, 2017
d8f23f7
Allow specifying an appIdSuffix to run-android
Phredward Apr 4, 2017
36c599b
ReactNativeFiber renderer type-fix for leaf node children
Apr 4, 2017
b31704b
Update issue template for Sketch -> Snack rename
brentvatne Apr 5, 2017
2b0282a
#11587 invoke error for getCurrentLocation
daose Apr 5, 2017
0ec9c93
Add comment about adding new resource directories
ayc1 Apr 5, 2017
a893d0b
Refactor CxxModuleWrapper to support different use cases
mhorowitz Apr 5, 2017
af533ac
Remove the dependency of I18nManagerModule on ReactApplicationContext
mhorowitz Apr 5, 2017
9a51fa8
Improve z-index implementation on Android
janicduplessis Apr 5, 2017
c7387fe
Enable flow in react-native-implementation
janicduplessis Apr 5, 2017
269458c
Update docs to clarify `RCT_REMAP_METHOD` usage.
chourobin Apr 5, 2017
da43c29
Update IntegrationWithExistingApps.md
javache Apr 5, 2017
3bf367c
Use tag ids for testID
ayc1 Apr 5, 2017
cd4545f
configurable devEnabled in React.gradle
vonovak Apr 5, 2017
d69c85f
Update Keyboard.js
hramos Apr 5, 2017
d18513b
Removed some no-longer-necessary Flow ignores.
Apr 5, 2017
4f243f1
Deploy v0.43.0
gabelevi Apr 6, 2017
6dbcb47
use performanceNow instead of Date.now() in ScrollResponder
sahrens Apr 6, 2017
b854239
Move away from rnplay to snack, with embedded examples!
brentvatne Apr 6, 2017
85d5a0e
Apple TV documentation
douglowder Apr 6, 2017
37c1678
Report JS errors in debug console
fromcelticpark Apr 6, 2017
fd99330
Refactor interfaces
theoy Apr 6, 2017
b3872e8
Check that RCTDidInitializeModuleNotification is being called with th…
fromcelticpark Apr 6, 2017
77bee75
packager: GlobalTransformCache: make key globalized
Apr 6, 2017
5f37483
Revert D4840716: Refactor interfaces
majak Apr 6, 2017
b210183
packager: index files by dir for fast matching
Apr 6, 2017
6fa8713
Use the absolute path to the sourcemap in the CS bundle
johnislarry Apr 6, 2017
39eb090
Fixing another iOS app extension unsafe API usage in react native
shrutic Apr 6, 2017
ea30aa0
Fixed crash when forwarding already existing property from ReactNativ…
olegbl Apr 6, 2017
d80f9df
add eslint-config-fbjs to RN package.json
kassens Apr 7, 2017
b5327dd
Set the enabled state on disabled button views
ayc1 Apr 7, 2017
f72d9dd
Add option to track when we're showing blankness during fast scrolling
sahrens Apr 7, 2017
1b52c2a
Support elements for header/footer
sahrens Apr 7, 2017
568fb40
packager: GlobalTransformCache: fix bug in retry logic
Apr 7, 2017
b2647ea
Allow ModuleRegistry initialization to complete lazily
javache Apr 7, 2017
ceac54e
Use forward declaration in RCTCxxModule
javache Apr 7, 2017
7255194
Match all loopback addresses
hilkeheremans Apr 7, 2017
6115d5a
Correct incorrect grep
hilkeheremans Apr 7, 2017
1fec1cc
fix it
sahrens Apr 7, 2017
01bb095
fix issue, closes: https://github.com/facebook/react-native/issues/13380
Trailblazerr1 Apr 7, 2017
39431de
fix typo - closes #13369
forki Apr 7, 2017
540f4c9
Fix crash in `RCTRedBox::formatFrameSource:`
terribleben Apr 7, 2017
597c8c7
Update ISSUE_TEMPLATE.md
hramos Apr 7, 2017
76b93e1
Add block-based initializer for RCTModuleData
javache Apr 7, 2017
5767b98
Add JSC utility header to RCTBridge
javache Apr 7, 2017
d03f9b7
PushNotificationIOS.requestPermissions won't resolve if no event list…
peterp Apr 7, 2017
403f356
Stop yarn error message appearing for Windows users of local-cli
anp Apr 7, 2017
e154117
Add proguard rules to bridge BUCK
jaegs Apr 7, 2017
909af08
Add a nativeID prop to allow native code to reference react managed v…
ayc1 Apr 7, 2017
29404f0
Correct `setState()` usage in tutorial
Apr 7, 2017
6f8ce41
Fix crash from FillRateLogging
sahrens Apr 7, 2017
a1e06df
Removed extra semicolon
Apr 8, 2017
263f40a
packager: HasteMap: expose getAllFiles()
davidaurelio Apr 8, 2017
3d3cd86
Added option to disable xip
Apr 8, 2017
e67b8fe
Use flow 0.43.1
zertosh Apr 8, 2017
f3dfd61
Allow lazy Cxx modules to not initialize
javache Apr 8, 2017
2336ac2
Improve constant extraction from RCTNativeModule
javache Apr 8, 2017
8591d8a
Webview disable save form prop
Apr 10, 2017
62114bb
Fix for IP detection on Macs with multiple interfaces and loopbacks c…
hilkeheremans Mar 11, 2017
97cb709
Match all loopback addresses
hilkeheremans Apr 7, 2017
5c2c2b8
Correct incorrect grep
hilkeheremans Apr 7, 2017
50f7f3c
Merge branch 'fix-mac-ip-detection-loopback' of https://github.com/ts…
hilkeheremans Apr 10, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-1]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-1]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-3]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-3]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true

[version]
^0.41.0
^0.43.1
27 changes: 17 additions & 10 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
Please read the following carefully before opening a new issue.
Your issue may be closed if it does not provide the information required by this template.

We use GitHub Issues for tracking bugs in React Native.
We use GitHub Issues exclusively for tracking bugs in React Native.

- If you have a non-bug question, ask on Stack Overflow: http://stackoverflow.com/questions/tagged/react-native
- If you have a question, ask on Stack Overflow: http://stackoverflow.com/questions/tagged/react-native
- If you have a feature request, post it on Canny: https://react-native.canny.io/feature-requests

Your issue may be closed without explanation if it does not provide the information required by this template.
Make sure your issue reproduces on master. Your issue may already have been fixed!
If your issue is present in master and in the stable release, try to reproduce your bug on https://snack.expo.io/
If you can't reproduce the bug on Snack, provide a sample project.
At the very least, provide an example of your code.

--- Please use this template, and delete everything above this line before submitting your issue ---
--- Delete everything above this line ---

### Description

[FILL THIS OUT: Explain what you did, what you expected to happen, and what actually happens.]
Explain what you did, what you expected to happen, and what actually happens.

### Reproduction
### Reproduction Steps and Sample Code

List all the steps required to reproduce the issue you're reporting. These steps should be clear and concise.

***An example of your code is REQUIRED***

[FILL THIS OUT: Try to reproduce your bug on rnplay.org and provide a link. If you can't reproduce the bug on rnplay.org, provide a sample project.]

### Solution

[FILL THIS OUT: What needs to be done to address this issue? Ideally, provide a pull request with a fix.]
What needs to be done to address this issue? Ideally, provide a pull request with a fix.

### Additional Information

* React Native version: [FILL THIS OUT: Does the bug reproduce on the latest RN release?]
* React Native version: [FILL THIS OUT: Be specific, filling out "latest" here is not enough.]
* Platform: [FILL THIS OUT: iOS, Android, or both?]
* Operating System: [FILL THIS OUT: MacOS, Linux, or Windows?]
* Development Operating System: [FILL THIS OUT: Are you developing on MacOS, Linux, or Windows?]
* Dev tools: [FILL THIS OUT: Xcode or Android Studio version, iOS or Android SDK version, if applicable]
33 changes: 23 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:
Thanks for submitting a PR! Please read these instructions carefully:

> **Unless you are a React Native release maintainer and cherry-picking an *existing* commit into a current release, ensure your pull request is targeting the `master` React Native branch.**
- [ ] Explain the **motivation** for making this change.
- [ ] Provide a **test plan** demonstrating that the code is solid.
- [ ] Match the **code formatting** of the rest of the codebase.
- [ ] Target the `master` branch, NOT a "stable" branch.

Explain the **motivation** for making this change. What existing problem does the pull request solve?
## Motivation (required)

Prefer **small pull requests**. These are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.
What existing problem does the pull request solve?

**Test plan (required)**
## Test Plan (required)

Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI or updates the website. See [What is a Test Plan?][1] to learn more.

Make sure tests pass on both Travis and Circle CI.
If you have added code that should be tested, add tests.

**Code formatting**
## Next Steps

Look around. Match the style of the rest of the codebase. See also the simple [style guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#style-guide).
Sign the [CLA][2], if you haven't already.

For more info, see the ["Pull Requests" section of our "Contributing" guidelines](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#pull-requests).
Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.

Make sure all **tests pass** on both [Travis][3] and [Circle CI][4]. PRs that break tests are unlikely to be merged.

For more info, see the ["Pull Requests"][5] section of our "Contributing" guidelines.

[1]: https://medium.com/@martinkonicek/what-is-a-test-plan-8bfc840ec171#.y9lcuqqi9
[2]: https://code.facebook.com/cla
[3]: https://travis-ci.org/facebook/react-native
[4]: http://circleci.com/gh/facebook/react-native
[5]: https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#pull-requests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ node_modules
/ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
*.js.meta

/coverage
/third-party
12 changes: 12 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>react-native</name>
<comment>Project react-native created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install:
- $yarn install

script:
- if [[ "$TEST_TYPE" = objc-ios ]]; then travis_retry travis_wait ./scripts/objc-test-ios.sh; fi
- if [[ "$TEST_TYPE" = objc-ios ]]; then travis_retry travis_wait ./scripts/objc-test-ios.sh test; fi
- if [[ "$TEST_TYPE" = objc-tvos ]]; then travis_retry travis_wait ./scripts/objc-test-tvos.sh; fi
- if [[ "$TEST_TYPE" = e2e-objc ]]; then node ./scripts/run-ci-e2e-tests.js --ios --js --retries 3; fi
- if [[ ( "$TEST_TYPE" = podspecs ) && ( "$TRAVIS_PULL_REQUEST" = "false" ) ]]; then gem install cocoapods && ./scripts/process-podspecs.sh; fi
Expand Down
45 changes: 23 additions & 22 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,30 @@ We will do our best to keep `master` in good shape, with tests passing at all ti

The core team will be monitoring for pull requests. When we get one, we'll run some Facebook-specific integration tests on it first. From here, we'll need to get another person to sign off on the changes and then merge the pull request. For API changes we may need to fix internal uses, which could cause some delay. We'll do our best to provide updates and feedback throughout the process.

**Please submit your pull request on the `master` branch**. If the fix is critical and should be included in a stable branch please mention it and it will be cherry picked into it.
**Please submit your pull request on the `master` branch**. If the fix is critical and should be included in a stable branch please mention it and it will be cherry picked into it by a project maintainer.

*Before* submitting a pull request, please make sure the following is done…

1. Fork the repo and create your branch from `master`.
2. **Describe your test plan in your commit.** If you've added code that should be tested, add tests!
3. If you've changed APIs, update the documentation.
4. If you've updated the docs, verify the website locally and submit screenshots if applicable.

```
$ cd website
$ npm install && npm start
go to: http://localhost:8079/react-native/index.html
```

5. Add the copyright notice to the top of any new files you've added.
6. Ensure tests pass on Travis and Circle CI.
7. Make sure your code lints (`node linter.js <files touched>`).
8. If you haven't already, sign the [CLA](https://code.facebook.com/cla).
9. Squash your commits (`git rebase -i`).
one intent alongs with one commit makes it clearer for people to review and easier to understand your intention

Note: It is not necessary to keep clicking `Merge master to your branch` on PR page. You would want to merge master if there are conflicts or tests are failing. The facebook-bot ultimately squashes all commits to a single one before merging your PR.
2. **Describe your test plan in your commit.**
- If you've added code that should be tested, add tests!
- If you've changed APIs, update the documentation.
- If you've updated the docs, verify the website locally and submit screenshots if applicable.

```
$ cd website
$ npm install && npm start
Open the following in your browser: http://localhost:8079/react-native/index.html
```

3. Add the copyright notice to the top of any new files you've added.
4. Ensure tests pass on Travis and Circle CI.
5. Make sure your code lints (`node linter.js <files touched>`).
6. If you haven't already, sign the [CLA](https://code.facebook.com/cla).
7. Squash your commits (`git rebase -i`).
One intent alongside one commit makes it clearer for people to review and easier to understand your intention.

> **Note:** It is not necessary to keep clicking `Merge master to your branch` on the PR page. You would want to merge master if there are conflicts or tests are failing. The Facebook-GitHub-Bot ultimately squashes all commits to a single one before merging your PR.

#### Copyright Notice for files

Expand Down Expand Up @@ -69,16 +70,16 @@ We are using GitHub Issues for our public bugs. We keep a close eye on this and

### Reporting New Issues

The best way to get your bug fixed is to provide a reduced test case. Please provide either a public repository with a runnable example or a [React Native Playground](https://rnplay.org/) snippet.
The best way to get your bug fixed is to provide a reduced test case. Please provide either a public repository with a runnable example or a [Sketch](https://sketch.expo.io/).

### Security Bugs

Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. With that in mind, please do not file public issues; go through the process outlined on that page.

## How to Get in Touch

* [Facebook group](https://www.facebook.com/groups/react.native.community/)
* Reactiflux — [#react-native](http://join.reactiflux.com/)
* [Facebook](https://www.facebook.com/groups/react.native.community/)
* [Twitter](https://www.twitter.com/reactnative)

## Style Guide

Expand Down
2 changes: 1 addition & 1 deletion ContainerShip/Dockerfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ADD build.gradle /app/build.gradle
ADD react.gradle /app/react.gradle

# run gradle downloads
RUN ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog
RUN ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog :ReactAndroid:downloadJSCHeaders

# compile native libs with Gradle script, we need bridge for unit and integration tests
RUN ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1 -Pcom.android.build.threadPoolSize=1
Expand Down
41 changes: 29 additions & 12 deletions ContainerShip/Dockerfile.android-base
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM library/ubuntu:16.04

# set default build arguments
ARG ANDROID_VERSION=25.2.3
ARG BUCK_VERSION=2016.11.11.01
ARG BUCK_VERSION=f3452a6a7ab15a60e94c962e686293acbe677473
ARG NDK_VERSION=10e
ARG NODE_VERSION=6.2.0
ARG WATCHMAN_VERSION=4.7.0
Expand Down Expand Up @@ -30,7 +30,7 @@ RUN n $NODE_VERSION
# download buck
RUN git clone https://github.com/facebook/buck.git /opt/buck
WORKDIR /opt/buck
RUN git checkout v$BUCK_VERSION
RUN git checkout $BUCK_VERSION

# build buck
RUN ant
Expand Down Expand Up @@ -62,16 +62,33 @@ RUN unzip ndk.zip
# cleanup NDK
RUN rm ndk.zip

# add android SDK tools
# 2 - Android SDK Platform-tools, revision 25.0.3
# 12 - Android SDK Build-tools, revision 23.0.1
# 35 - SDK Platform Android 6.0, API 23, revision 3
# 39 - SDK Platform Android 4.4.2, API 19, revision 4
# 102 - ARM EABI v7a System Image, Android API 19, revision 5
# 103 - Intel x86 Atom System Image, Android API 19, revision 5
# 131 - Google APIs, Android API 23, revision 1
# 166 - Android Support Repository, revision 41
RUN echo "y" | android update sdk -u -a -t 2,12,35,39,102,103,131,166
# Add android SDK tools

# Android SDK Platform-tools, revision 25.0.4
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Android SDK Platform-tools, revision 25.0.4" | awk '{ print $1 }' | sed 's/.$//')

# Android SDK Build-tools, revision 23.0.1
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Android SDK Build-tools, revision 23.0.1" | awk '{ print $1 }' | sed 's/.$//')

# SDK Platform Android 6.0, API 23, revision 3
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "SDK Platform Android 6.0, API 23" | awk '{ print $1 }' | sed 's/.$//')

# SDK Platform Android 4.4.2, API 19, revision 4
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "SDK Platform Android 4.4.2, API 19, revision 4" | awk '{ print $1 }' | sed 's/.$//')

# ARM EABI v7a System Image, Android API 19, revision 5
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "ARM EABI v7a System Image, Android API 19, revision 5" | awk '{ print $1 }' | sed 's/.$//')

# Intel x86 Atom System Image, Android API 19, revision 5
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Intel x86 Atom System Image, Android API 19, revision 5" | awk '{ print $1 }' | sed 's/.$//')

# Google APIs, Android API 23, revision 1
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Google APIs, Android API 23, revision 1" | awk '{ print $1 }' | sed 's/.$//')

# Android Support Repository, revision 45
RUN echo "y" | android update sdk -u -a -t $(android list sdk -a | grep "Android Support Repository, revision 45" | awk '{ print $1 }' | sed 's/.$//')

# Link adb executable
RUN ln -s /opt/android/platform-tools/adb /usr/bin/adb

# clean up unnecessary directories
Expand Down
10 changes: 9 additions & 1 deletion ContainerShip/scripts/run-android-ci-instrumentation-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ const child_process = require('child_process');
const fs = require('fs');
const path = require('path');

// Flaky tests ignored on Circle CI. They still run internally at fb.
const ignoredTests = [
'ReactScrollViewTestCase',
'ReactHorizontalScrollViewTestCase'
];

const colors = {
GREEN: '\x1b[32m',
RED: '\x1b[31m',
Expand All @@ -53,6 +59,8 @@ let testClasses = fs.readdirSync(path.resolve(process.cwd(), test_opts.PATH))
return file.endsWith('.java');
}).map((clazz) => {
return path.basename(clazz, '.java');
}).filter(className => {
return ignoredTests.indexOf(className) === -1;
}).map((clazz) => {
return test_opts.PACKAGE + '.' + clazz;
}).filter((clazz) => {
Expand Down Expand Up @@ -112,7 +120,7 @@ return async.mapSeries(testClasses, (clazz, callback) => {
print_test_suite_results(results);

const failures = results.filter((test) => {
test.status === 'failure';
return test.status === 'failure';
});

return failures.length === 0 ? process.exit(0) : process.exit(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ watchman shutdown-server
node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js

# build test APK
buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests --config build.threads=1
source ./scripts/circle-ci-android-setup.sh && NO_BUCKD=1 retry3 buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests --config build.threads=1

# run installed apk with tests
node ./ContainerShip/scripts/run-android-ci-instrumentation-tests.js $*
exit $?
2 changes: 1 addition & 1 deletion ContainerShip/scripts/run-ci-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN_CLI_INSTALL=1
RUN_IOS=0
RUN_JS=0

RETRY_COUNT=${RETRY_COUNT:-3}
RETRY_COUNT=${RETRY_COUNT:-1}
AVD_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)

ANDROID_NPM_DEPS="appium@1.5.1 mocha@2.4.5 wd@0.3.11 colors@1.0.3 pretty-data2@0.40.1"
Expand Down
12 changes: 12 additions & 0 deletions Examples/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Examples</name>
<comment>Project Examples created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions Examples/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=..
eclipse.preferences.version=1
Loading