Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
290 commits
Select commit Hold shift + click to select a range
38e01a2
Fix IllegalStateException when dismissing DialogManager
mdvacca Nov 3, 2018
83c7303
Trivial cleanup in ReactRootView
mdvacca Nov 3, 2018
4d16a0e
RN: Copyright Header for `ReactInstanceManagerTest.java`
yungsters Nov 3, 2018
a09aca5
Fix the comment for getSize in Image.android.js (#22092)
wd39 Nov 4, 2018
b03b9d5
Fix duplicate function declaration in WebSockets (#22098)
ignacioola Nov 4, 2018
cc13a73
Improving Modal `visible` prop check to handle undefined and null (#2…
MateusAndrade Nov 4, 2018
499c195
Flow strict ScrollViewMock (#22103)
exced Nov 4, 2018
cf70870
Remove var in Libraries/emitter/* (#22087)
binaryta Nov 4, 2018
6448f4e
RN: Revert React 16.6 Sync
yungsters Nov 4, 2018
01b7c48
Remove flow-strict from polyfillPromise (#22048)
empyrical Nov 4, 2018
6ebee18
Remove unused variables (#22097)
ignacioola Nov 4, 2018
e835c6d
Replace var to const in Libraries/Utilities/deepFreezeAndThrowOnMutat…
watanabeyu Nov 4, 2018
3f069f3
Remove var in Libraries/vendor/core/merge.js (#22108)
Nov 4, 2018
368518e
Remove var in Libraries/Utilities/MatrixMath.js (#22111)
ggtmtmgg Nov 4, 2018
b01bf06
Remove var in Libraries/Utilities/buildStyleInterpolator.js (#22112)
mottox2 Nov 4, 2018
ce18036
Make PR template consistent with Changelog (#22117)
turnrye Nov 4, 2018
7b10a02
Fix rn-cli linting issues (#22099)
ignacioola Nov 5, 2018
3c0211b
Turn Flow strict mode on for DatePickerIOS (#22105)
nissy-dev Nov 5, 2018
fbc5a4f
Turn Flow strict mode on for KeyBoard (#22114)
nissy-dev Nov 5, 2018
0beb1cc
remove var in ReactAndroid/src/androidTest (#22136)
nissy-dev Nov 5, 2018
6f781d9
remove var in ReactAndroid/src/androidTest. (#22137)
nissy-dev Nov 5, 2018
9d13233
Remove var in ReactAndroid/src/androidTest (#22135)
nissy-dev Nov 5, 2018
54f7eb3
Performance improvement for loading cached images on iOS (#20356)
esamelson Nov 5, 2018
3a98318
Increase cache and file size limits
fatalsun Nov 5, 2018
79712c3
Disallow Optional::operator=(nullptr_t) unless T is a pointer
chadaustin Nov 5, 2018
147c38a
remove createReactClass from ToolbarAndroid/ToolbarAndroid.android.js…
nissy-dev Nov 5, 2018
0ea95e7
remove createReactClass from SegmentedControlIOS.ios.js (#21888)
nissy-dev Nov 5, 2018
84c5416
Flow type RefreshControl (#22119)
exced Nov 5, 2018
ffd7195
Remove unused styles (#22083)
vcalvello Nov 5, 2018
f8040ed
Fix `no-shadow` eslint warning & remove var (#22124)
binaryta Nov 5, 2018
0d4f627
Removed unnecessary code in Libraries/Text/Text.js (#22132)
ifsnow Nov 5, 2018
6476151
Flow strict StaticContainer (#22121)
exced Nov 5, 2018
cc90c20
Remove var in /Libralies/Experimental/IncrementalPresenter.js (#22144)
soyanakagawa Nov 5, 2018
f9050e0
Flow strict DrawerLayout (#22152)
Nov 5, 2018
636e146
Flow strict in ViewPagerAndroid.android.js (#22134)
nissy-dev Nov 5, 2018
aab0160
Update and expand bytecode spec
sahrens Nov 5, 2018
7b5277b
mostly working on Android + OTA
sahrens Nov 5, 2018
ccc8a42
Cleanup a bunch of the JS stuff
sahrens Nov 5, 2018
ac9e09d
rename ReactBytecode -> UITemplate
sahrens Nov 5, 2018
0a39cda
Remove var in Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.j…
nabettu Nov 6, 2018
98685e8
Fabric: Using RuntimeExecutor in concrete EventBeats
shergin Nov 6, 2018
3110a67
Fabric: Explicit clearing std::vector after moving from it
shergin Nov 6, 2018
df4521e
Fabric: Making jsi::Runtime a part of EventBeat and EventPipe
shergin Nov 6, 2018
e88db99
Fabric: Removing deprecated leftovers from RCTScheduler and RCTSurfac…
shergin Nov 6, 2018
ee50618
Fabric: Some helper classes and functions were moved to uimanager/pri…
shergin Nov 6, 2018
6c5b8c6
Fabric: Introduced ComponentDescriptorRegistry::at() method family
shergin Nov 6, 2018
b9f9f32
Fabric: A bunch of functions for converting JSI primitives to Fabric …
shergin Nov 6, 2018
18d8c48
Fabric: Introducing UIManagerBinding, a replacement for JSIFabricUIMa…
shergin Nov 6, 2018
786df48
Fabric: Making some picky compilers happy
shergin Nov 6, 2018
6b6a27c
TouchEventEmitter: Fix assignment of Y coordinates (#22160)
empyrical Nov 6, 2018
7dd2b0b
Types for BackHandler
nmn Nov 6, 2018
8b46c9a
Fix inline styles in ReactAndroid (#22166)
ignacioola Nov 6, 2018
1d62e94
Fix inline styles in IntegrationTests (#22165)
ignacioola Nov 6, 2018
c03fc40
Flow strict Slider (#22127)
exced Nov 6, 2018
69213ee
Flow strict TouchableOpacity (#22146)
exced Nov 6, 2018
41eb2da
Fix inline styles warning in Libraries (#22161)
ignacioola Nov 6, 2018
e02a154
Allow overriding Metro server host with a system prop
stepanhruda Nov 6, 2018
1f394fa
iOS: Attempt to load lazy modules when asked from native
fkgozali Nov 7, 2018
31439f8
Fix build error caused by -Werror=class-memaccess (#823)
hooddanielc Nov 7, 2018
2a8f6c3
Add Yoga JNI bindings to libcoldstart
davidaurelio Nov 7, 2018
bccc454
console polyfill: pass unsupported messages to original console
Hypuk Nov 7, 2018
e57ad4e
Fix IllegalArgumentException when dismissing ReactModalHostView
mdvacca Nov 8, 2018
70e9e26
TextInput: Remove PropTypes, NativeMethodsMixin; Convert to ES6 class…
empyrical Nov 8, 2018
ad7d8f8
Fix internal types on top of TextInput refactor
elicwhite Nov 8, 2018
7e818ae
Fixing TextInput related jest tests
elicwhite Nov 8, 2018
e6a8dca
TextInput add back propTypes
elicwhite Nov 8, 2018
0cb59b5
React sync for revisions 4773fdf...3ff2c7c
yungsters Nov 8, 2018
54e8d6c
Fix args passed when measuring Androidwitch
axe-fb Nov 8, 2018
50e9b0f
Enable unused-private-field warning (#13450)
Nov 8, 2018
8d5d144
Update oss lockfile
Nov 8, 2018
fe49809
Replace String with constants for Module names in Fb4aCoreInfraPackage
axe-fb Nov 8, 2018
81b74ec
Give eagerly loaded modules precedent over lazily loaded one.
d16r Nov 8, 2018
8329c10
Stop mounting of Views when there is an exception in Native
mdvacca Nov 9, 2018
cd5009f
Temporary disable AndroidSwipeRefreshLayout
mdvacca Nov 9, 2018
fe7eb61
Force navigation to use root tag
mdvacca Nov 9, 2018
7b04f6a
Add systrace support in Fabric C++
mdvacca Nov 9, 2018
95b21b4
Refactor 'induce' of events in Fabric Android
mdvacca Nov 9, 2018
2b01da0
Expose rootTag / surfaceId as part of schedulerDidRequestPreliminaryV…
mdvacca Nov 9, 2018
bf2500e
Switch to synchronous strategy for unprotect
mhorowitz Nov 9, 2018
7b3c91e
Fix inline styles eslint warnings for examples (#22123)
ignacioola Nov 9, 2018
f386f83
Back out TextInput es6 conversion
elicwhite Nov 9, 2018
d623679
`Removing UIManager.measureViewsInRect()`
shergin Nov 9, 2018
918a7d5
Turn off static linking for cxxreact:bridge
christolliday Nov 9, 2018
0b31496
Adds support for `publicPath` to enable serving assets from different…
gdborton Nov 9, 2018
28278e1
Fix Shimmer in Fabric Android
mdvacca Nov 9, 2018
803e993
Use static constants instead of strings when referring to View Manage…
axe-fb Nov 9, 2018
d2408dd
Fabric: Making EventEmitter::setEnabled additive
shergin Nov 9, 2018
fba7c1e
Add copyright header into ContextUtils class
mdvacca Nov 9, 2018
d7865eb
Add another guard to lazilyLoadView
Nov 9, 2018
80f92ad
iOS: ignore double registration of lazy modules with chrome attached
fkgozali Nov 9, 2018
df7e8c6
Fix ReactInstanceManager deadlock
ayc1 Nov 9, 2018
1850906
Use nativeQPLTimestamp for InitializeCore marker point
Nov 9, 2018
d4aef08
Add a marker to indicate when JS thread priority is lowered
axe-fb Nov 9, 2018
be282b5
Fix ReactRootView attachRootView race condition
ayc1 Nov 10, 2018
2bf0d54
Only include ServerHost constant in debug builds
stepanhruda Nov 10, 2018
188cbb0
Reset module registry flag when resetting React Instance
Nov 10, 2018
9f9390d
Moved androidID constant to a method
axe-fb Nov 10, 2018
94d49e5
Fabric: Codemod: All `<fabric/...` includes were renamed to `<react/...`
shergin Nov 10, 2018
33b9661
Avoid pre-allocating views for non-layoutable shadow nodes
mdvacca Nov 11, 2018
0436bfc
UITemplateProcessor: Fix case of include path (#22239)
empyrical Nov 12, 2018
bea57d8
DeltaPatcher: better support for the new Delta format
Nov 12, 2018
c787866
Clearer HMR error messages
Nov 12, 2018
eebc8e2
NetInfo: try to solve crash with releasing _firstTimeReachability
Nov 12, 2018
de60e86
Bump metro@0.49.1
rafeca Nov 12, 2018
11d4512
Update React Native OSS Yarn and Gradle caches
hramos Nov 14, 2018
8826d8b
Allow CxxModules to implement methods with two callbacks (#21586)
Nov 14, 2018
d7a0c44
iOS: add moduleForNameForcedLoad: to lookup modules by name and force…
fkgozali Nov 14, 2018
339d9d3
Guard Platform.isTesting under __DEV__
fkgozali Nov 14, 2018
2e465bc
Android: Close websocket properly when remote server initiates close …
syaau Nov 14, 2018
0408533
Fix regression in StyleSheet.setStyleAttributePreprocessor (#22262)
brentvatne Nov 14, 2018
a508134
Fixed HTTP connection timeout on Android (#22164)
Nov 14, 2018
6eb5bd3
added functionality using which child node can tell parent node to us…
SidharthGuglani-zz Nov 14, 2018
e02a24b
Dispatch events asynchronously
mdvacca Nov 14, 2018
39b8fa9
iOS TM: Rename RCTJSINativeModule => RCTTurboModule
fkgozali Nov 14, 2018
9b781bd
Remove unused loads from xplat.
ttsugriy Nov 14, 2018
83405ff
Fix crash when releasing RN views
ayc1 Nov 14, 2018
56a416e
nullptr -> folly::none in fbobjc/xplat
chadaustin Nov 14, 2018
b649fa9
Fix crash when removing root nodes
ayc1 Nov 14, 2018
06c13b3
Upgrade jest to v24.0.0-alpha.6
rafeca Nov 14, 2018
5b71408
Remove dynamic exception specification in RN MethodCall.h/cpp
yiding Nov 15, 2018
43ad3a6
Flow v0.86.0 in xplat/js [3/n]
panagosg7 Nov 15, 2018
984eef8
Revert D12994045: Flow v0.86.0 in xplat/js [3/n]
Nov 15, 2018
b971c5b
Workaround a wrong fling direction for inverted ScrollViews on Androi…
mandrigin Nov 15, 2018
619de16
Back to yearless format for MIT license
davidaurelio Nov 15, 2018
aacb06c
Fix React Native AsyncMode and DevTools
Nov 15, 2018
5939d07
Fix compatibility issue for android 16 device.Fixes #22294 (#22295)
gengjiawen Nov 15, 2018
d9c2cda
JS: Switch from `new Buffer` to `Buffer.from`
yungsters Nov 15, 2018
4aeea4d
Changed front-facing camera so that it shows consistent image during …
Nov 15, 2018
271ace9
Defining explicit clang-format for Objective-C part of React Native
shergin Nov 16, 2018
673ef39
resizeMode applies to Image.defaultSource (#22216)
dulmandakh Nov 16, 2018
a009406
New TextInput-test that would have prevented S168585
sahrens Nov 16, 2018
9ea1295
reapply TextInput es6 conversion with fixes, attemps to fix
sahrens Nov 16, 2018
0c05409
CxxReact: Silence 'unused lambda capture' warnings in open-source (#2…
empyrical Nov 16, 2018
8fb228f
Flow v0.86.0 in xplat/js
panagosg7 Nov 16, 2018
383ea99
Add bounce method to TouchableBounce
Nov 16, 2018
6f34bc4
Back out "reapply TextInput es6 conversion with fixes, attemps to fix"
sahrens Nov 16, 2018
17ced57
Add test for WritableNativeMap
ayc1 Nov 17, 2018
8911353
create api to allow clients to present a client credential for authen…
jsonblob Nov 17, 2018
1de79e1
Fabric: Fixed bug in RCTSurfaceTouchHandler::PointerHasher
shergin Nov 17, 2018
868406d
Fabric: Using non-mutating `at` instead of `[]` for `-[RCTSurfaceTouc…
shergin Nov 17, 2018
560652c
Fabric: Proper implementation `-[RCTSurfaceTouchHandler reset]`
shergin Nov 17, 2018
74f6575
Cleanup old Fabric methods from ReactShadowNodeImpl
mdvacca Nov 17, 2018
d3a7325
Fix scrolling with multiple fingers in RN Fabric scrollView
mdvacca Nov 17, 2018
dcf72ff
Change font size default from 12 to 14
mdvacca Nov 17, 2018
2dbe769
NIT remove unnecessary cast in measure
mdvacca Nov 17, 2018
8367fa9
Implement layout constraint when measuring text
mdvacca Nov 17, 2018
7b2030b
Fix padding for Text Views in Fabric
mdvacca Nov 17, 2018
bea3bb6
DrawerLayoutAndroid: Convert to ES6 class (#21980)
empyrical Nov 17, 2018
346c9d5
Surface: Using screen size as a default maximum size of Fabric Surface
shergin Nov 17, 2018
1fa56a0
Rename requiresMainThreadSetup -> requiresMainQueueSetup in code comm…
karanjthakkar Nov 18, 2018
55994f5
Replace global.alert use to fix eslint warnings (#22184)
vcalvello Nov 20, 2018
27cfba2
Remove useless additionnal blur call (#22156)
Nov 20, 2018
70826db
iOS: Support inline view truncation (#21456)
Nov 20, 2018
aad83cc
iOS TM: RCTEnableJSINativeModule => RCTEnableTurboModule
fkgozali Nov 20, 2018
45c5183
Flow strict TouchableBounce (#22197)
exced Nov 21, 2018
7927497
Flow strict TextProps (#22122)
exced Nov 21, 2018
35a65cd
Flow strict TextInput (#22250)
exced Nov 21, 2018
da0b139
Improve Flow types
RSNara Nov 21, 2018
f22473e
Fix jsc regression.Fixes #22274 (#22293)
gengjiawen Nov 21, 2018
a97d104
Flow strict TouchableHighlight (#22173)
exced Nov 21, 2018
fb4825a
Flow strict ScrollResponder (#22181)
saitoxu Nov 21, 2018
c127000
Flow strict-local in TimePickerAndroid.android.js (#22188)
binaryta Nov 21, 2018
6fa997d
Flow strict StatusBar (#22282)
watanabeyu Nov 21, 2018
3649a50
Flow TouchableNativeFeedback.android.js (#22176)
mottox2 Nov 21, 2018
1f32b5d
then to thenValue changes to allow deletion of value-taking continuat…
LeeHowes Nov 22, 2018
3ecf4ea
Fabric: ShadowNode::backtrackAncestors(...)
shergin Nov 22, 2018
9eec2c3
Fabric: LayoutableShadowNode::getRelativeLayoutMetrics()
shergin Nov 22, 2018
71208f0
Fabric: Getting rid of leftovers in Scheduler
shergin Nov 22, 2018
b4fa1fa
Fabric: Introducing ShadowTreeRegistry
shergin Nov 22, 2018
f8be867
Fabric: Sharing a pointer to ShadowTreeRegister with UIManager
shergin Nov 22, 2018
7e57755
Fabric: `UIManager::getRelativeLayoutMetrics`
shergin Nov 22, 2018
9c96133
Fabric: `ParagraphShadowNode::updateLocalDataIfNeeded()`
shergin Nov 22, 2018
0a293a0
Fix ReactAndroid build break. (#22377)
Kudo Nov 22, 2018
02a3517
Fix allocating Buffer in early commit (#22379)
radeno Nov 22, 2018
ecc7012
Fabric: Fixed `AttributedString::operator==`
shergin Nov 22, 2018
3337a1d
Add getUndefined() method to obtain the undefined value
amir-shalem Nov 22, 2018
f8ff6bd
Pass primitives by value
davidaurelio Nov 22, 2018
64d162e
Dealloc JNI implementation experiment
davidaurelio Nov 22, 2018
c34ad17
Pass enums by value
davidaurelio Nov 22, 2018
8f283b9
`YGNodeComputeFlexBasisForChildren`: remove output param
davidaurelio Nov 22, 2018
98546e9
Use real flow types from metro
rafeca Nov 22, 2018
3355c52
Bump metro version in React Native
rafeca Nov 22, 2018
4514041
- Resolve two gradle deprecation warnings (#22360)
nicknovitski Nov 23, 2018
c3dea89
Back out "[react-native][PR] [flow-strict] Flow strict StatusBar"
Nov 23, 2018
f2894e5
Data types for marker API
davidaurelio Nov 25, 2018
0357d0d
Ensure thread safety in the exeuction of RuntimeExecutor
mdvacca Nov 26, 2018
10ce6c3
Refactor types used during yoga meassure calls
mdvacca Nov 26, 2018
3b4d6d5
Add systrace to calculation of Yoga layout() in Fabric
mdvacca Nov 26, 2018
eec9e4a
Expose hash as part of text localdata
mdvacca Nov 26, 2018
5be17c0
Fix re-measure of text
mdvacca Nov 26, 2018
3be2816
Remove max and min font size from serialization of text attribute
mdvacca Nov 26, 2018
f341795
Add caching of spannable text objects
mdvacca Nov 26, 2018
89f647d
Redefine hashcode for AttributedString
mdvacca Nov 26, 2018
eef3df8
Fabric: Introducing `-[RCTComponentViewProtocol componentHandle]`
shergin Nov 26, 2018
e581977
Introducing RCTComponentViewFactory
shergin Nov 26, 2018
cd5f0bd
Fabric: Stopping creating ShadowView instances for non-View ShadowNodes
shergin Nov 26, 2018
c68e69c
Fabric: Proper handling of memory pressure event in RCTComponentViewR…
shergin Nov 26, 2018
a686048
Fix cookies not being sent after a redirected response (#22178)
corradio Nov 26, 2018
287934d
Fix Xcode 10 builds (broken by folly upgrade) (#22394)
radko93 Nov 26, 2018
dc8246d
Stop using Promise from fbjs
cpojer Nov 26, 2018
f377926
Remove isNode call from Map polyfill
cpojer Nov 26, 2018
2de01cb
Inline `extractSingleTouch` from fbjs
cpojer Nov 26, 2018
cfef04e
Remove fbjs/lib/emptyFunction from react-native
cpojer Nov 26, 2018
1f8b46a
Clean up EventEmitter
cpojer Nov 26, 2018
f000cf0
calling markDirtyAndPropogate when setting isReferenceBaseline value
SidharthGuglani-zz Nov 26, 2018
fed8b39
Sort build file loads.
ttsugriy Nov 26, 2018
ffa9036
jest: rename tests to follow the new convention
rubennorte Nov 26, 2018
922e196
jest: make regex for tests stricter
rubennorte Nov 26, 2018
7fe3f90
Back out "Add bounce method to TouchableBounce"
Nov 26, 2018
ffd2409
Fabric: Proper implementation of -[RCTViewComponentView prepareForRec…
shergin Nov 26, 2018
215a0f0
Fabric: Proper implementation -[RCTParagraphComponentView prepareForR…
shergin Nov 26, 2018
0ec1d21
Fabric: Fixed a retain cycle between ParagraphShadowNode, LocalData a…
shergin Nov 26, 2018
e61a14e
Fabric: RCTWeakEventEmitterWrapper, NSAttributedString and co.
shergin Nov 26, 2018
b5571cd
Create a recursive free with cleanup function
Nov 27, 2018
53da585
Fix: Add displayName to ActivityIndicator (#22417)
miblanchard Nov 27, 2018
fd78eee
Fix text alpha bug
necolas Nov 27, 2018
18f3de9
Allow init of Native Module before bridge is initialized [2/N]
Nov 27, 2018
2ae559a
eslint: Disable jasmine env and only enable jest env for test files
rubennorte Nov 27, 2018
0c8db08
Switch: Improve Accessibility
yungsters Nov 27, 2018
d3f3bfa
Added `persistentScrollbar` prop in ScrollView component (#22300)
kpsroka Nov 27, 2018
00681c3
Fix TouchEvents on text after state changes
mdvacca Nov 27, 2018
706888d
Use Changelog instead of Release Notes for danger bot (#22395)
radko93 Nov 27, 2018
7030d95
Fix unmangled visibility in rn_defs
adamjernst Nov 27, 2018
ada7089
Revert D13105396
RSNara Nov 27, 2018
db43aa8
Implement getConstants()
RSNara Nov 28, 2018
23845fb
Flow strict in Picker.js, PickerIOS.ios.js, PickerAndroid.android.js …
nissy-dev Nov 28, 2018
7b2e3f8
Small cleanup of TextInputExample
sahrens Nov 28, 2018
d594d5a
Fabric: `UIManagerBinding::getRelativeLayoutMetrics`
shergin Nov 28, 2018
f42d2b9
Fabric: `ShadowTree::completeByReplacingShadowNode`
shergin Nov 28, 2018
142dd76
Fabric: UIManager::setNativeProps
shergin Nov 28, 2018
28c3981
Fabric: UIManagerBinding::setNativeProps
shergin Nov 28, 2018
62173a1
Introducing `fabric/mounting` module
shergin Nov 28, 2018
6c3b05f
Fabric: std::hash for ShadowView
shergin Nov 28, 2018
7197aa0
Fabric: Using ShadowView instad of ShadowNode inside AttributedString
shergin Nov 28, 2018
106de12
Fabric: Fixed incorrect systrace marker in UIManagerBinding::dispatch…
shergin Nov 28, 2018
f4da876
Fabric: Coupling `Tag` inside `TargetEventEmitter`
shergin Nov 28, 2018
dea8773
Fabric: `ValueFactory` and `EventEmitter::dispatchEvent` based on that
shergin Nov 28, 2018
eeaf009
Fabric: Migrating SwitchEventEmitter to JSI-based payload
shergin Nov 28, 2018
610dac4
Fabric: Migrating ViewEventEmitter to JSI-based payload
shergin Nov 28, 2018
847e6fd
Fabric: Migrating ScrollViewEventEmitter to JSI-based payload
shergin Nov 28, 2018
c30c803
Fabric: Migrating TouchEventEmitter to JSI-based payload
shergin Nov 28, 2018
4355b2d
JS: Upgrade to `chalk@^2.4.1`
yungsters Nov 28, 2018
51d983b
flow-typed: Define minimist
yungsters Nov 28, 2018
e81adb9
DeltaClient: split DeltaBundle's modules into added and modified
Nov 28, 2018
c293f29
Fix rename legacy component lifecycles (#22125)
Nov 28, 2018
d6d31a4
JSBigString: Explicitly include unistd.h (#22330)
empyrical Nov 29, 2018
585f7b9
Summary:
shergin Nov 29, 2018
ef2084c
0.87.0 in xplat/js
panagosg7 Nov 29, 2018
dac29e8
fixup xcode project
davidaurelio Nov 29, 2018
ea734dc
Adjust yearless format for MIT license
davidaurelio Nov 29, 2018
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
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ aliases:

- &restore-cache-downloads-buck
keys:
- v3-buck-v2018.07.23.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v3-buck-v2018.07.23.01-
- v3-buck-v2018.10.29.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v3-buck-v2018.10.29.01-
- &save-cache-downloads-buck
paths:
- ~/buck
- ~/okbuck
key: v3-buck-v2018.07.23.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}
key: v3-buck-v2018.10.29.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}

- &restore-cache-watchman
keys:
Expand Down Expand Up @@ -132,7 +132,7 @@ aliases:
name: Install BUCK
command: |
if [[ ! -e ~/buck ]]; then
git clone https://github.com/facebook/buck.git ~/buck --branch v2018.07.23.01 --depth=1
git clone https://github.com/facebook/buck.git ~/buck --branch v2018.10.29.01 --depth=1
fi
cd ~/buck && ant
buck --version
Expand Down
33 changes: 28 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

"env": {
"es6": true,
"jest": true,
},

"plugins": [
Expand All @@ -14,7 +13,7 @@
"prettier",
"react",
"react-native",
"jest"
"jest",
],

// Map from global var to bool specifying if it can be redefined
Expand All @@ -37,7 +36,6 @@
"fetch": false,
"FormData": false,
"global": false,
"jest": false,
"Map": true,
"module": false,
"navigator": false,
Expand All @@ -52,8 +50,6 @@
"setTimeout": false,
"window": false,
"XMLHttpRequest": false,
"pit": false,
"jasmine": true
},

"rules": {
Expand Down Expand Up @@ -271,5 +267,32 @@
"node": true,
},
},
{
"files": [
"**/__fixtures__/**/*.js",
"**/__mocks__/**/*.js",
"**/__tests__/**/*.js",
"jest/**/*.js",
"RNTester/**/*.js",
],
"globals": {
// Expose some Jest globals for test helpers
"afterAll": true,
"afterEach": true,
"beforeAll": true,
"beforeEach": true,
"expect": true,
"jest": true,
},
},
{
"files": [
"**/__tests__/**/*-test.js",
],
"env": {
"jasmine": true,
"jest": true,
},
},
],
}
5 changes: 1 addition & 4 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
; Ignore polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/invariant')
.*/node_modules/invariant/.*
Expand Down Expand Up @@ -101,4 +98,4 @@ untyped-import
untyped-type-import

[version]
^0.84.0
^0.87.0
5 changes: 1 addition & 4 deletions .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
; Ignore polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/invariant')
.*/node_modules/invariant/.*
Expand Down Expand Up @@ -101,4 +98,4 @@ untyped-import
untyped-type-import

[version]
^0.84.0
^0.87.0
56 changes: 31 additions & 25 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,37 @@ Test Plan:
----------
Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!

Release Notes:
--------------
Help reviewers and the release process by writing your own release notes. See below for an example.
Changelog:
----------
Help reviewers and the release process by writing your own changelog entry. When the change doesn't impact React Native developers, it may be ommitted from the changelog for brevity. See below for an example.

[CATEGORY] [TYPE] [LOCATION] - Message
[CATEGORY] [TYPE] - Message

<!--
**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

CATEGORY
[----------] TYPE
[ CLI ] [-------------] LOCATION
[ DOCS ] [ BREAKING ] [-------------]
[ GENERAL ] [ BUGFIX ] [ {Component} ]
[ INTERNAL ] [ ENHANCEMENT ] [ {Filename} ]
[ IOS ] [ FEATURE ] [ {Directory} ] |-----------|
[ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} |
[----------] [-------------] [-------------] |-----------|

EXAMPLES:

[IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
[ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
[CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
[DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
[GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
[INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->

CATEGORY may be:

- [General]
- [iOS]
- [Android]

TYPE may be:

- [Added] for new features.
- [Changed] for changes in existing functionality.
- [Deprecated] for soon-to-be removed features.
- [Removed] for now removed features.
- [Fixed] for any bug fixes.
- [Security] in case of vulnerabilities.

For more detail, see https://keepachangelog.com/en/1.0.0/#how

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

EXAMPLES:

[General] [Added] - Add snapToOffsets prop to ScrollView component
[General] [Fixed] - Fix various issues in snapToInterval on ScrollView component
[iOS] [Fixed] - Fix crash in RCTImagePicker

-->
5 changes: 5 additions & 0 deletions ContainerShip/Dockerfile.android
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# React Native Android Unit Tests
#
# This image builds upon the React Native Base Android Development Environment
Expand Down
7 changes: 6 additions & 1 deletion ContainerShip/Dockerfile.android-base
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# React Native Base Android Development Environment
#
# This image provides a base Android development environment for React Native,
Expand All @@ -20,7 +25,7 @@ LABEL maintainer="Héctor Ramos <hector@fb.com>"
ARG SDK_VERSION=sdk-tools-linux-3859397.zip
ARG ANDROID_BUILD_VERSION=27
ARG ANDROID_TOOLS_VERSION=27.0.3
ARG BUCK_VERSION=v2018.07.23.01
ARG BUCK_VERSION=v2018.10.29.01
ARG NDK_VERSION=17c
ARG NODE_VERSION=8.10.0
ARG WATCHMAN_VERSION=4.9.0
Expand Down
5 changes: 5 additions & 0 deletions ContainerShip/Dockerfile.javascript
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

FROM library/node:6.9.2

ENV YARN_VERSION=0.27.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const test_opts = {
PATH: argv.path || './ReactAndroid/src/androidTest/java/com/facebook/react/tests',
RETRIES: parseInt(argv.retries || 2, 10),

TEST_TIMEOUT: parseInt(argv['test-timeout'] || 1000 * 60 * 10),
TEST_TIMEOUT: parseInt(argv['test-timeout'] || 1000 * 60 * 10, 10),

OFFSET: argv.offset,
COUNT: argv.count,
Expand Down Expand Up @@ -68,7 +68,6 @@ testClasses = testClasses.map((clazz) => {

// only process subset of the tests at corresponding offset and count if args provided
if (test_opts.COUNT != null && test_opts.OFFSET != null) {
const testCount = testClasses.length;
const start = test_opts.COUNT * test_opts.OFFSET;
const end = start + test_opts.COUNT;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

# for buck gen
mount -o remount,exec /dev/shm
Expand Down
6 changes: 6 additions & 0 deletions ContainerShip/scripts/run-android-docker-unit-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

# set default environment variables
UNIT_TESTS_BUILD_THREADS="${UNIT_TESTS_BUILD_THREADS:-1}"
Expand Down
6 changes: 6 additions & 0 deletions ContainerShip/scripts/run-ci-e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

set -ex

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

# shellcheck disable=SC1117
# Python script to run instrumentation tests, copied from https://github.com/circleci/circle-dummy-android
# Example: ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests com.facebook.react.tests.ReactPickerTestCase
Expand Down
11 changes: 9 additions & 2 deletions IntegrationTests/AsyncStorageTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

const React = require('react');
const ReactNative = require('react-native');
const {AsyncStorage, Text, View} = ReactNative;
const {AsyncStorage, Text, View, StyleSheet} = ReactNative;
const {TestModule} = ReactNative.NativeModules;

const deepDiffer = require('deepDiffer');
Expand Down Expand Up @@ -191,7 +191,7 @@ class AsyncStorageTest extends React.Component<{}, $FlowFixMeState> {

render() {
return (
<View style={{backgroundColor: 'white', padding: 40}}>
<View style={styles.container}>
<Text>
{/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
* comment suppresses an error found when Flow v0.54 was deployed.
Expand All @@ -205,6 +205,13 @@ class AsyncStorageTest extends React.Component<{}, $FlowFixMeState> {
}
}

const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
padding: 40,
},
});

AsyncStorageTest.displayName = 'AsyncStorageTest';

module.exports = AsyncStorageTest;
5 changes: 4 additions & 1 deletion IntegrationTests/ImageCachePolicyTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ImageCachePolicyTest extends React.Component<Props, $FlowFixMeState> {

render() {
return (
<View style={{flex: 1}}>
<View style={styles.container}>
<Text>Hello</Text>
<Image
source={{
Expand Down Expand Up @@ -110,6 +110,9 @@ class ImageCachePolicyTest extends React.Component<Props, $FlowFixMeState> {
}

const styles = StyleSheet.create({
container: {
flex: 1,
},
base: {
width: 100,
height: 100,
Expand Down
2 changes: 1 addition & 1 deletion IntegrationTests/ImageSnapshotTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

const React = require('react');
const ReactNative = require('react-native');
const {Image, View} = ReactNative;
const {Image} = ReactNative;
const {TestModule} = ReactNative.NativeModules;

class ImageSnapshotTest extends React.Component<{}> {
Expand Down
11 changes: 9 additions & 2 deletions IntegrationTests/IntegrationTestHarnessTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const requestAnimationFrame = require('fbjs/lib/requestAnimationFrame');
const React = require('react');
const ReactNative = require('react-native');
const {Text, View} = ReactNative;
const {Text, View, StyleSheet} = ReactNative;
const {TestModule} = ReactNative.NativeModules;

type Props = $ReadOnly<{|
Expand Down Expand Up @@ -54,7 +54,7 @@ class IntegrationTestHarnessTest extends React.Component<Props, State> {

render() {
return (
<View style={{backgroundColor: 'white', padding: 40}}>
<View style={styles.container}>
<Text>
{/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
* comment suppresses an error found when Flow v0.54 was deployed.
Expand All @@ -67,6 +67,13 @@ class IntegrationTestHarnessTest extends React.Component<Props, State> {
}
}

const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
padding: 40,
},
});

IntegrationTestHarnessTest.displayName = 'IntegrationTestHarnessTest';

module.exports = IntegrationTestHarnessTest;
6 changes: 5 additions & 1 deletion IntegrationTests/SimpleSnapshotTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SimpleSnapshotTest extends React.Component<{}> {

render() {
return (
<View style={{backgroundColor: 'white', padding: 100}}>
<View style={styles.container}>
<View style={styles.box1} />
<View style={styles.box2} />
</View>
Expand All @@ -43,6 +43,10 @@ class SimpleSnapshotTest extends React.Component<{}> {
}

const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
padding: 100,
},
box1: {
width: 80,
height: 50,
Expand Down
Loading