Skip to content

Add onChangeContentSize callback #3

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

Closed
wants to merge 420 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
420 commits
Select commit Hold shift + click to select a range
ecfd4f8
patch commit that was not synced from fbsource
bestander Feb 24, 2016
4cd1947
manual file sync for oss sync bot
bestander Feb 24, 2016
25e1180
manual file sync for oss sync bot
bestander Feb 24, 2016
96ecfad
manual file sync for oss sync bot
bestander Feb 24, 2016
a759131
another patch hoping to fix chronos
bestander Feb 24, 2016
11843fd
Initialize glog in react native.
cjhopman Feb 24, 2016
9ae3714
Create offline package if not running in "Debug" config
geof90 Feb 24, 2016
ec173b1
Add drawerLockMode prop to DrawerLayoutAndroid
andreasdri Feb 24, 2016
5c41865
Remove duplicate register call
jacob-israel-turner Feb 24, 2016
f7f3e7b
Fix UIExample typos: hightlight -> highligh
Feb 24, 2016
21ee7fd
Fix mocks in NavigationExperimental
javache Feb 24, 2016
b4992ef
Add disabled TouchableNativeFeedback button example
Feb 24, 2016
9a70ff0
Fix site generation
nicklockwood Feb 24, 2016
b8850df
typo with in code, replace date.toTime with date.getTime
xing-zheng Feb 24, 2016
3603479
Fix Platform.Version documentation
dantman Feb 24, 2016
936b5e7
Backed out changeset fe59b7f7c7da
andreicoman11 Feb 24, 2016
f538032
Sync CSSLayout: Make 'stretch' aligned children fill cross-axis in co…
jsendros Feb 24, 2016
4b4455f
Removed 'screen' option from snapshot API
nicklockwood Feb 24, 2016
3faa70a
Add guidelines for managing GitHub issues
Feb 24, 2016
3640080
Remove unused variable
andreicoman11 Feb 24, 2016
9836b29
Align stack on all JSC API calls
Feb 24, 2016
6bcb2a0
Introducing NavigationCardStack
Feb 25, 2016
6b80f11
Add switch for enabling nodes screenshot tests
Feb 25, 2016
2d921ee
Resolve react flow definitions
corbt Feb 25, 2016
3ed66ee
Fix scrollResponderScrollTo deprecated warning
pjcabrera Feb 25, 2016
f0689cf
add Universal Links support to Linking.getInitialURL(). Fixes #6099
daesan Feb 25, 2016
13f2aea
Fix for different geolocation timestamp for Android and iOS
gasperz Feb 25, 2016
b8e7fe4
Copy exif data when resizing images in ImageEditingManager
lexs Feb 25, 2016
f51c16b
Avoid dirtying layout when frame doesn't change
javache Feb 25, 2016
45a52c7
Support multiple interface orientations in RCTDevLoadingView
javache Feb 25, 2016
480e9ab
Sets up example for LegacyNavigator.
Feb 25, 2016
29e6bac
Fixed UIExplorerStateTitleMap.js being .ios only
bestander Feb 25, 2016
d9c0f24
Added the app Hover to the React Native showcase
kevinejohn Feb 25, 2016
652c1c1
Fix incorrect MeasureSpec in ReactTextInputShadowNode
Feb 26, 2016
9d3d9df
Make fbsource and GitHub consistent
Feb 26, 2016
5112a63
Added ability to run Movies app with BUCK
bestander Feb 26, 2016
8b88cae
Fix android's image tintColor prop when used with alpha
AbilashK Feb 26, 2016
a9846da
support plain numbers in add and multiply operators
Feb 26, 2016
c449d9e
Fix an issue (Sticky header index was outside the range) when renderS…
christoph-jerolimov Feb 26, 2016
7d96dbb
Added new app for showcase: Deskbookers
emilioicai Feb 26, 2016
ae0ad1f
Implement modulo operator method
Feb 26, 2016
7eb7b94
fix resources build variable name
lklots Feb 26, 2016
c377f2a
Add message channel to packager for sending commands to bridge (2/N)
bottledwalter Feb 26, 2016
732f2e1
List people who manage GitHub issues
Feb 26, 2016
b860897
Restore canvas once group has been drawn
Feb 26, 2016
542432f
Launch a new task if openURL is called with a url in a different package
Feb 26, 2016
d032cc9
Pass jsc config to JSC
andreicoman11 Feb 26, 2016
251d5a5
Fixed flow error about require platform forked component
bestander Feb 26, 2016
50141f9
fix RCTPerfMonitor display unit error
Feb 26, 2016
c32e5fd
Revert D2926896 WebWorkers: Move web worker impl to JSCExecutor
astreet Feb 26, 2016
9baef48
decouple textview from fresco
foghina Feb 26, 2016
9edfd94
Fix minor code nit from D2977441
Feb 26, 2016
c8835d0
Fix RCTLinkingManager crash on iOS7
javache Feb 26, 2016
f7df3bb
Removed eager init of all ViewManagers on layout
nicklockwood Feb 26, 2016
7032a64
Fix WebView example on iOS
nicklockwood Feb 26, 2016
f420f81
Revert D2982150: Revert D2926896 WebWorkers: Move web worker impl to …
astreet Feb 26, 2016
20588a6
Log HMR events
martinbigio Feb 26, 2016
b2b41da
Don't hardcode 'localhost:8081' as the _hmrURL in the Bundler
skevy Feb 26, 2016
4b98511
Remove gating code for HMR on iOS
martinbigio Feb 26, 2016
f99579a
Try/catch exceptions in JSCExecutor for debugging crash
astreet Feb 26, 2016
7383378
Fixed issue with opaque thumbnails being given an alpha channel
nicklockwood Feb 26, 2016
d7cee3a
bump node-haste to 2.4.0
martinbigio Feb 26, 2016
436db67
Allow parents to accept children modules
martinbigio Feb 26, 2016
3812c74
Guard navigator from dismatching gestures.
Feb 27, 2016
8a042f4
Minor path change for message socket between packager and bridge (3/N)
bottledwalter Feb 27, 2016
7c2c6a9
Show a Toast for HMR
satya164 Feb 27, 2016
3cc4f97
Remove 'displayName' prop from 'PickerExample' component
satya164 Feb 28, 2016
44fcf22
Fix crash when passing null to clearImmediate
janicduplessis Feb 28, 2016
79e9489
Add 'Linking' example
satya164 Feb 29, 2016
cf0c3d4
Update wc to latest version to remove insecure warning
gtanner Feb 29, 2016
fcd468d
fix props anchor links
skv-headless Feb 29, 2016
5a53d90
fix all anchor links in docs
skv-headless Feb 29, 2016
8d44c2d
Fix bridge tests
nicklockwood Feb 29, 2016
d7d47d8
Defer constants gathering until after setup
nicklockwood Feb 29, 2016
f331a58
Move initialization of RCTBatchedBridge into its own method.
mhorowitz Feb 29, 2016
ffdd3e4
remove dead code
mhorowitz Feb 29, 2016
10e8e38
Update GitHub issue guidelines
Feb 29, 2016
d033380
Tweak wording of issue guidelines
Feb 29, 2016
86d6d54
Add React.js 2016 Conf videos
Feb 29, 2016
e55cefc
Add log message to bridge init
cjhopman Feb 29, 2016
73bdef4
Unify scene rederer params that are used render the scene / header.
Feb 29, 2016
f130a36
Update known issues
Feb 29, 2016
9be1216
Minor code improvements for RCTTextInput
Mar 1, 2016
7e3266d
Fix attributes checking for Image.android.js
Mar 1, 2016
a72c295
babel-preset-react-native: Make sure that `react-transform-hmr/lib/in…
davidaurelio Mar 1, 2016
58f86b2
Don't execute things that may throw in Bridge/JSCExecutor dtors
astreet Mar 1, 2016
d94a567
Add new worker for code transform, optimization, and dependency extra…
davidaurelio Mar 1, 2016
f67fa82
Add UIManager.measureInWindow to get window coordinates
javache Mar 1, 2016
bd95b22
WebWorkers: Add ExecutorToken to route native module calls to/from wo…
astreet Mar 1, 2016
c60ebf2
Update release schedule and steps
Mar 1, 2016
cbc0e21
Support for XHR responseType and response attributes
Mar 1, 2016
0db22f1
NavigationCardStack - Add card stack item.
Mar 1, 2016
35da174
Added unit tests for module init
nicklockwood Mar 1, 2016
b4dc5e3
Added TeamWarden App to website showcase
ng-marcus Mar 1, 2016
6bae7f9
Add suggested ‘view size’ powers to -[RCTShadowView setFrame:]
alloy Mar 1, 2016
2957f73
removed bithound badge
bestander Mar 1, 2016
85801ef
Remove invariant hack for jest
sahrens Mar 1, 2016
caac520
Add gesture handling for the card stack.
Mar 2, 2016
25f7802
Fix UIExplorer Header
Mar 2, 2016
00178b7
Added prebuilt folder with BUCK files to support BUCK run of ReactAnd…
bestander Mar 2, 2016
e3de994
Merge pull request #6241 from bestander/manual-sync-prebuilt
bestander Mar 2, 2016
ca67648
Revert ArrayBuffer support
nicklockwood Mar 2, 2016
ad8a335
Remove knowledge of fbjs from the packager
davidaurelio Mar 2, 2016
170f452
Fix broken link
lucasfeliciano Mar 2, 2016
4654b34
Revert Remove invariant hack for jest
Mar 2, 2016
f827f7b
instrumentation tests are executed with BUCK
bestander Mar 2, 2016
ab12189
Enable blurOnSubmit for text input in android
AbilashK Mar 2, 2016
d3f2081
Fix unit tests in open source environment
davidaurelio Mar 2, 2016
5df3eeb
Force 16 byte stack alignment on JNI method invocations on x86
Mar 2, 2016
5a6a94b
sync fbjni
Mar 2, 2016
e7499e3
limit number of workers
davidaurelio Mar 2, 2016
c331d11
Fix breakages caused by switch to fbjs
davidaurelio Mar 2, 2016
f6b0c13
Expose Clipboard docs
Bhullnatik Mar 2, 2016
eb53194
Fix the last imports of `'invariant'`
davidaurelio Mar 2, 2016
8717b2d
Rework the NavigationHeader
Mar 2, 2016
854c5dd
Simplified Travis configuration
bestander Mar 2, 2016
2708df4
Use `invariant` from fbjs everywhere
davidaurelio Mar 3, 2016
8f3e5b1
Update usage names of React Native color palette
fryn Mar 3, 2016
dc13115
Dispatch module setup asynchronously to avoid blocking main thread wh…
nicklockwood Mar 3, 2016
d2d00e0
Adding GC Timer Sweeping to Android
dcaspi Mar 3, 2016
1bab7c5
vibration module
skv-headless Mar 3, 2016
6d5f9dd
WebWorkers: Allow native modules to be notified when executors are un…
astreet Mar 3, 2016
36f1961
Use flow-bin to typecheck locally, update ESLint to 2.0
satya164 Mar 3, 2016
5ffeb97
Back out of D3000972
bestander Mar 3, 2016
39409dd
another fix
bestander Mar 3, 2016
32dd1fe
fixed instrumentation tests crashes in emulator
bestander Mar 3, 2016
7fb3303
Copy weak reference to callback object when dispatching calls to Java
astreet Mar 3, 2016
39b399e
returned flow check to e2e test
bestander Mar 3, 2016
e4766b7
WebWorkers: Update Timing module to support web workers
astreet Mar 3, 2016
c2c71ca
"loosing"→"losing" (typo)
Pimm Mar 3, 2016
a48db5c
added bestander for notifications of travis ci status changes
bestander Mar 3, 2016
532e411
added ArcChat.com Android app to showcase
liesislukas Mar 3, 2016
9a3f11d
WebWorkers: Convert NetworkingModule to support web workers
astreet Mar 3, 2016
c027f05
add generic memory pressure listener interface
foghina Mar 3, 2016
4b52d18
support simulating critical memory pressure, even when activity is de…
foghina Mar 3, 2016
2e4bb53
destroy react instance on background critical memory pressure
foghina Mar 3, 2016
44997b4
Skeleton for running Android e2e or a separate packager e2e test
Mar 3, 2016
8c25181
Add onShow callback for RCTModalHostView
Mar 3, 2016
1b4c23e
WebWorkers: Update WebWorker sample to use networking/timers
astreet Mar 3, 2016
d5d9c5a
Tweak HMR updates order
martinbigio Mar 4, 2016
8a16291
nested emit call in a queue should be handled in FIFO
Mar 4, 2016
f5edabf
Update Babel/React Dependencies
skevy Mar 4, 2016
1caebf1
Add data structure to manage the stack for the legacy navigator.
Mar 4, 2016
e64987d
Fix deadlock in bridge
astreet Mar 4, 2016
d6ded2f
Display a warning when using src property for an Image rather than so…
winkerVSbecks Mar 4, 2016
9199c72
WebWorker: Allow worker script to be loaded from the network in debug…
astreet Mar 4, 2016
1e96bcf
Added troubleshooting
csholmq Mar 4, 2016
cf8bb75
Add Veggies to the showcase
vdel26 Mar 4, 2016
f0f1f61
Update PR and issue templates and guidelines
Mar 4, 2016
8d52567
Run an e2e packager test on CircleCI
Mar 4, 2016
ea882b6
Immediate dispatch 0 time timers
lexs Mar 4, 2016
ab61a1f
Sanitize lineNumber in launchEditor
shayne Mar 4, 2016
d815d1d
Move cssVar out of react-native-github
fryn Mar 4, 2016
fbef6f6
using a more safe branch of sinopia
bestander Mar 4, 2016
71e5976
Clean up APIs.
Mar 4, 2016
21b7bf4
Fix commit order of operations in Nodes
Mar 5, 2016
54b6b92
Un-blacklist fbjs
davidaurelio Mar 5, 2016
2d27cf0
Don't warn when jsSchedulingOverhead is negative
corbt Mar 5, 2016
46422dd
Ability to supply product flavor for `react-native run-android` command
alwx Mar 5, 2016
970782d
run-android Chose your Term for OSX, and Linux
nmccready Mar 5, 2016
a6a89fe
Fix IllegalStateException crash in WebSocketModule.java
Mar 5, 2016
a340105
Replace "Bad: will fatal" with "Bad: will fail" in Text.md
nhunzaker Mar 5, 2016
ebf5842
Fix listener name in NavigationAnimatedView
rclai Mar 5, 2016
ae11449
in ReactContext, de-reference the Activity in onPause() instead of on…
aaronechiu Mar 6, 2016
87245b2
Support the scriptURLs observed on Android for asset source resolver
Mar 6, 2016
262983f
Add note about adding new images
sunnylqm Mar 6, 2016
081a413
Deleted unnecessary 'use strict' in new project templates
Mar 6, 2016
d1826dd
LayoutAnimation now works on android
sunnylqm Mar 6, 2016
cde58a6
Rename dev menu option to Hot Reloading on boths ios and android
martinbigio Mar 6, 2016
b430087
Fixed permalink
chenxsan Mar 6, 2016
fedca59
revert D2971596
chenfadafb Mar 6, 2016
4130f11
revert D2839551
chenfadafb Mar 6, 2016
0252812
WebSocket: call onclose before closing in event of error
Mar 6, 2016
d0356fb
Updated the Android Setup with correct SDK package to install.
dhrrgn Mar 7, 2016
89a486e
Fix: cli.js - use var instead of const
hzoo Mar 7, 2016
7ff938f
underlineColor -> underlineColorAndroid
sunnylqm Mar 7, 2016
11594b8
Fix navigation in UIExplorer. Use current index instead of fixed valu…
michax Mar 7, 2016
4642733
Add app to showcase with source link
manonthemat Mar 7, 2016
7dbba3b
Add SoundCloud Pulse to the app showcase
janmonschke Mar 7, 2016
006907b
Initialize bridge on a background queue
nicklockwood Mar 7, 2016
24c458a
Fix JS deallocation on load errors
tadeuzagallo Mar 7, 2016
f885f53
Backed out D3012969
chenfadafb Mar 7, 2016
33e9e34
Backed out changeset D3012925
chenfadafb Mar 7, 2016
fd3a0ba
Play nice with `fetch` after the newest changes that add support for …
davidaurelio Mar 7, 2016
62788a1
Allows a user to specify an xcode scheme name.
markrickert Mar 7, 2016
e9c9645
Add issue bot close command and add janicduplessis to the bot whitelist
janicduplessis Mar 7, 2016
72b274a
Removed Parse reference since its service is shutting down
niftylettuce Mar 8, 2016
d0a26a7
RN: Fix Exponential WebSocket Growth from DevTools
yungsters Mar 8, 2016
aae521f
Add ReactCompoundViewGroup interface that allows having both virtual …
korDen Mar 8, 2016
102a31c
Fix RefreshControl layout on screen rotation and consecutive pull to …
janicduplessis Mar 8, 2016
49b2805
Geolocation Accuracy and Cached Location Bug
realaboo Mar 8, 2016
82e2038
Link to 'LinuxWindowsSupport.md' at the appropriate commit.
DanielRosenwasser Mar 8, 2016
2fe6716
Added objective-c class/module semantics
alper Mar 8, 2016
10e990f
Don't publish shrinkwrap
Mar 8, 2016
87c2688
Update fetch to latest https://github.com/github/fetch
mrlaessig Mar 8, 2016
9d09efd
transform before extracting dependencies
davidaurelio Mar 8, 2016
6e3710f
Make js perf API available to js
Mar 8, 2016
6d0272a
Fix potential unused variable error
ryu2 Mar 8, 2016
accccd8
Remove use of deprecated folly::dynamic initialization
mzlee Mar 8, 2016
e76fb68
Don't rebuild bundles automatically on file changes
davidaurelio Mar 8, 2016
b5ae8a8
Clean up NavigationAnimatedView
Mar 8, 2016
10ad47a
Fix run-android to execute app on all connected devices
jimthedev Mar 8, 2016
2070efa
Convert Image resizeMode `contain` to FIT_CENTER
cosmith Mar 8, 2016
06a41c3
Forward touchable events to TouchableNativeFeedback
mangogogos Mar 8, 2016
ab926cc
Update uglifyjs to newest release
davidaurelio Mar 8, 2016
dc4d486
Make uglify not append //# sourceMappingURL=
davidaurelio Mar 8, 2016
b473d49
Update FBSource to use Flow 0.22
jeffmo Mar 8, 2016
ab4c73c
Compensate for different versions of folly for open source build
mzlee Mar 8, 2016
179ac1e
Remove HMRClient out of the bundle
martinbigio Mar 8, 2016
3c2bf63
react native updated to [email protected]
bestander Mar 9, 2016
fa5783e
Initial implementation of the Navigator with NavigationExperimental.
Mar 9, 2016
6470ff8
Reject promise if network request failed
mrlaessig Mar 9, 2016
f2483eb
Rename setTiming to applyAnimation
rclai Mar 9, 2016
db3a00d
Replace underscore by lodash
Mar 9, 2016
6b61099
Fixes to flow after trunk was broken
bestander Mar 9, 2016
c01435c
Add Zhopout to showcase
MuruganDurai Mar 9, 2016
3418dd5
Update issue bot commands and guidelines
Mar 9, 2016
9213d04
Backed out changeset ed509fc86e9d
bestander Mar 9, 2016
925e2eb
Make order of bundle transports deterministic
davidaurelio Mar 9, 2016
62177db
Removed defaultViews
nicklockwood Mar 9, 2016
a1821ae
Blacklist modules from being how swapped
martinbigio Mar 9, 2016
f5a3490
Fix event dispatcher timestamp sorting bug
andreicoman11 Mar 9, 2016
4e31148
Use a version-specific search
vjeux Mar 9, 2016
1393747
ESLint: Improve Flow & React Support
yungsters Mar 9, 2016
d8e794c
RN: Upgrade ESLint to v2.2.0
yungsters Mar 9, 2016
4c49db4
Set podspec version to be greater than zero
greis Mar 9, 2016
336dbe4
getCurrentConnectivity should resolve with object
mrlaessig Mar 10, 2016
11458d6
Add product pains to support
vjeux Mar 10, 2016
593d766
Fix fbsource errors
jeffmo Mar 10, 2016
8c2e531
Remove Releases tab from header
vjeux Mar 10, 2016
d20bde3
Add missing textAlignVertical support on android textview
axelander Mar 10, 2016
e9c79f8
Initialize glog in react native
cjhopman Mar 10, 2016
13c49e2
Fix null deref in RN timer code
cwdick Mar 10, 2016
1832d79
TextStorage in RCTText is now only set when it differs from old value.
Mar 10, 2016
dcfa620
Added HackerWeb App to website showcase
cheeaun Mar 10, 2016
f21da3a
<Incremental> for incremental rendering
sahrens Mar 10, 2016
20cd7ac
add hyphen on drawerLockMode values
sunnylqm Mar 10, 2016
ec9efb8
Updating AppState to support the inactive state.
kenwheeler Mar 10, 2016
d24db57
fixed jest tests: added /website/ folder to jest ignore list
bestander Mar 10, 2016
d71c051
Update PR guidelines
Mar 10, 2016
520ad05
Removed unnecessary exportedConstants
nicklockwood Mar 10, 2016
c304364
Improvements to the preparsing cache
dcaspi Mar 10, 2016
30166c5
NavigationExperimental: Avoid double push on double-tap in UIExplorer
Mar 10, 2016
9ca853d
NavigationExperimental: Fix missed renaming of setTiming to applyAnim…
Mar 10, 2016
cbae5c9
WIP: Temporarily fork e2e-test script
Mar 10, 2016
a611ec5
Added e2e tests for npm@2 and npm@3
bestander Mar 10, 2016
b1090bf
NavigationExperimental: Handle generic back action from stack reducer
Mar 10, 2016
f5a1600
Fixes #1509 -- Add note about side-specific properties on TextInput
pletcher Mar 10, 2016
7da65a8
backed out changeset 87e6fe282c08
Mar 10, 2016
744f13d
Add onChangeContentSize callback
brentvatne Mar 8, 2016
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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

[maven_repositories]
central = https://repo1.maven.org/maven2

[alias]
movies = //Examples/Movies/android/app:app
6 changes: 2 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
"no-caller": 1, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 1, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 0, // disallow else after a return in an if (off by default)
"no-empty-label": 1, // disallow use of labels for anything other then loops and switches
"no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 1, // disallow use of eval()
"no-extend-native": 1, // disallow adding to native types
Expand Down Expand Up @@ -182,6 +181,8 @@
// These rules are purely matters of style and are quite subjective.

"key-spacing": 0,
"keyword-spacing": 1, // enforce spacing before and after keywords
"jsx-quotes": [1, "prefer-double"],
"comma-spacing": 0,
"no-multi-spaces": 0,
"brace-style": 0, // enforce one true brace style (off by default)
Expand All @@ -205,11 +206,9 @@
"quote-props": 0, // require quotes around object literal property names (off by default)
"semi": 1, // require or disallow use of semicolons instead of ASI
"sort-vars": 0, // sort variables within the same declaration block (off by default)
"space-after-keywords": 1, // require a space after certain keywords (off by default)
"space-in-brackets": 0, // require or disallow spaces inside brackets (off by default)
"space-in-parens": 0, // require or disallow spaces inside parentheses (off by default)
"space-infix-ops": 1, // require spaces around operators
"space-return-throw-case": 1, // require a space after return, throw, and case
"space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
"max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default)
"one-var": 0, // allow just one var statement per function (off by default)
Expand All @@ -227,7 +226,6 @@

"react/display-name": 0,
"react/jsx-boolean-value": 0,
"react/jsx-quotes": [1, "double", "avoid-escape"],
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 0,
Expand Down
35 changes: 29 additions & 6 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
# Ignore react and fbjs where there are overlaps, but don't ignore
# anything that react-native relies on
.*/node_modules/fbjs/lib/Map.js
.*/node_modules/fbjs/lib/Promise.js
.*/node_modules/fbjs/lib/fetch.js
.*/node_modules/fbjs/lib/ExecutionEnvironment.js
.*/node_modules/fbjs/lib/isEmpty.js
.*/node_modules/fbjs/lib/crc32.js
.*/node_modules/fbjs/lib/ErrorUtils.js

# Flow has a built-in definition for the 'react' module which we prefer to use
Expand All @@ -28,6 +25,11 @@
.*/node_modules/react/lib/React.js
.*/node_modules/react/lib/ReactDOM.js

.*/__mocks__/.*
.*/__tests__/.*

.*/commoner/test/source/widget/share.js

# Ignore commoner tests
.*/node_modules/commoner/test/.*

Expand All @@ -40,14 +42,35 @@
# Ignore Website
.*/website/.*

.*/node_modules/is-my-json-valid/test/.*\.json
.*/node_modules/iconv-lite/encodings/tables/.*\.json
.*/node_modules/y18n/test/.*\.json
.*/node_modules/spdx-license-ids/spdx-license-ids.json
.*/node_modules/spdx-exceptions/index.json
.*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json
.*/node_modules/resolve/lib/core.json
.*/node_modules/jsonparse/samplejson/.*\.json
.*/node_modules/json5/test/.*\.json
.*/node_modules/ua-parser-js/test/.*\.json
.*/node_modules/builtin-modules/builtin-modules.json
.*/node_modules/binary-extensions/binary-extensions.json
.*/node_modules/url-regex/tlds.json
.*/node_modules/joi/.*\.json
.*/build/.*\.json
.*/\.buckd/.*

[include]

[libs]
Libraries/react-native/react-native-interface.js
flow/

[options]
module.system=haste

esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable

munge_underscores=true

module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
Expand All @@ -57,9 +80,9 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

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

[version]
0.21.0
0.22.0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ project.xcworkspace
# Buck
.buckd
buck-out
/ReactAndroid/src/main/jni/prebuilt/lib/armeabi-v7a/
/ReactAndroid/src/main/jni/prebuilt/lib/x86/

# Android
.idea
Expand Down
71 changes: 25 additions & 46 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ language: objective-c

osx_image: xcode7.2

cache:
directories:
- node_modules
- .nvm

install:
- brew reinstall nvm
- mkdir -p .nvm
Expand All @@ -15,51 +10,38 @@ install:
- nvm install 5
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
- npm config set spin=false
- npm install -g flow-bin@`node -p "require('fs').readFileSync('.flowconfig', 'utf8').split('[version]')[1].trim()"`
- npm config set progress=false
- npm install

script:
- |
if [ "$TEST_TYPE" = objc ]
then

./scripts/objc-test.sh
travis_retry ./scripts/objc-test.sh

elif [ "$TEST_TYPE" = js ]
then

npm install [email protected]
cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; flow --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" node bots/code-analysis-bot.js
flow check && npm test -- '\/Libraries\/'

elif [ "$TEST_TYPE" = packager ]
then

npm test -- '\/packager\/'

elif [ "$TEST_TYPE" = cli ]
cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; npm run flow --silent -- --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" node bots/code-analysis-bot.js
npm run flow && npm test
# testing js e2e with npm3
npm install -g npm@3
npm --version
./scripts/e2e-test.sh --packager
# testing js e2e with npm2
rm -rf node_modules
npm install -g npm@2
npm install
npm --version
./scripts/e2e-test.sh --packager

elif [ "$TEST_TYPE" = e2e-objc ]
then

npm test -- '\/(local|private|react-native)-cli\/'
travis_retry ./scripts/e2e-test.sh --ios

elif [ "$TEST_TYPE" = build_website ]
then

cd website
$(which npm) install
./setup.sh
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
# Automatically publish the website
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
./publish.sh
else
# Make sure the website builds without error
node server/generate.js
fi

elif [ "$TEST_TYPE" = e2e ]
then
./scripts/e2e-test.sh
else
echo "Unknown test type: $TEST_TYPE"
exit 1
Expand All @@ -69,19 +51,16 @@ env:
matrix:
- TEST_TYPE=objc
- TEST_TYPE=js
- TEST_TYPE=packager
- TEST_TYPE=cli
- TEST_TYPE=build_website
- TEST_TYPE=e2e
global:
# $GITHUB_TOKEN
- secure: "HlmG8M2DmBUSBh6KH1yVIe/8gR4iibg4WfcHq1x/xYQxGbvleq7NOo04V6eFHnl9cvZCu+PKH0841WLnGR7c4BBf47GVu/o16nXzggPumHKy++lDzxFPlJ1faMDfjg/5vjbAxRUe7D3y98hQSeGHH4tedc8LvTaFLVu7iiGqvjU="
# $APPETIZE_TOKEN
- secure: "egsvVSpszTzrNd6bN62DsVAzMiSZI/OHgdizfPryqvqWBf655ztE6XFQSEFNpuIAzSKDDF25ioT8iPfVsbC1iK6HDWHfmqYxML0L+OoU0gi+hV2oKUBFZDZ1fwSnFoWuBdNdMDpLlUxvJp6N1WyfNOB2dxuZUt8eTt48Hi3+Hpc="
# $S3_TOKEN
- secure: "lY8JZPA0A7zT7L5KF9BBg34XYWIeR/RJiEvE7l7oVr88KnEPtyd//79eHhhVKnUnav7zsk5QJwkcX0MxKTp/dp4G0Am+zOX+sfA8kQrJ+2/+FzFW7AEsW/kHByfaIEIly9DQvUFt4I4oMm8nQZysJLahDgNWglyI3RTuJp//hcY="
- TEST_TYPE=e2e-objc

branches:
only:
- master
- /^.*-stable$/

notifications:
email:
recipients:
- [email protected]
on_failure: change
on_success: change
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The core team will be monitoring for pull requests. When we get one, we'll run s
*Before* submitting a pull request, please make sure the following is done…

1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests!
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. Add the copyright notice to the top of any new files you've added.
5. Ensure tests pass on Travis and Circle CI.
Expand Down Expand Up @@ -73,6 +73,7 @@ Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe

#### General

* **Most important: Look around.** Match the style you see used in the rest of the project. This includes formatting, naming things in code, naming things in documentation.
* Add trailing commas,
* 2 spaces for indentation (no tabs)
* "Attractive"
Expand Down
3 changes: 3 additions & 0 deletions Examples/2048/Game2048.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class Board extends React.Component {
}

class Tile extends React.Component {
state: any;

static _getPosition(index): number {
return BOARD_PADDING + (index * (CELL_SIZE + CELL_MARGIN * 2) + CELL_MARGIN);
}
Expand Down Expand Up @@ -147,6 +149,7 @@ class GameEndOverlay extends React.Component {
class Game2048 extends React.Component {
startX: number;
startY: number;
state: any;

constructor(props: {}) {
super(props);
Expand Down
2 changes: 1 addition & 1 deletion Examples/Movies/SearchScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var {
} = React;
var TimerMixin = require('react-timer-mixin');

var invariant = require('invariant');
var invariant = require('fbjs/lib/invariant');
var dismissKeyboard = require('dismissKeyboard');

var MovieCell = require('./MovieCell');
Expand Down
43 changes: 43 additions & 0 deletions Examples/Movies/android/app/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
include_defs('//ReactAndroid/DEFS')

android_binary(
name = 'app',
manifest = 'src/main/AndroidManifest.xml',
keystore = '//keystores:debug',
deps = [
':movies-lib',
],
)

android_library(
name = 'movies-lib',
srcs = glob(['src/main/java/**/*.java']),
deps = [
react_native_target('java/com/facebook/csslayout:csslayout'),
react_native_target('java/com/facebook/react:react'),
react_native_target('java/com/facebook/react/devsupport:devsupport'),
react_native_target('java/com/facebook/react/modules/core:core'),
react_native_target('java/com/facebook/react/shell:shell'),
react_native_target('java/com/facebook/react/touch:touch'),
react_native_target('java/com/facebook/react/uimanager:uimanager'),
react_native_target('java/com/facebook/react/uimanager/annotations:annotations'),
react_native_target('java/com/facebook/react/views/image:image'),
react_native_target('java/com/facebook/react/views/recyclerview:recyclerview'),
react_native_target('java/com/facebook/react/views/scroll:scroll'),
react_native_target('java/com/facebook/react/views/text:text'),
react_native_target('java/com/facebook/react/views/view:view'),
# .so files are prebuilt by Gradle with `./gradlew :ReactAndroid:packageReactNdkLibsForBuck`
react_native_target('jni/prebuilt:reactnative-libs'),
react_native_target('jni/prebuilt:android-jsc'),
react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'),
react_native_dep('third-party/java/jsr-305:jsr-305'),
':res',
],
)


android_resource(
name = 'res',
res = 'src/main/res',
package = 'com.facebook.react.movies',
)
1 change: 1 addition & 0 deletions Examples/Movies/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

<application
android:allowBackup="true"
Expand Down
Loading