React Native July 2017 (v0.47.0) released
v0.47.0 on GitHub (npm)
Breaking changes
Android
iOS
- Fix font weight resolution (cfeaefb) - @kipricker
General
Bugfixes
- VirtualizedList: Fix problems if _updateCellsToRender gets called too early (1ee602b) - @mikelambert
- VirtualizedList: Fix deltatime calculation (5840a90) - @mikelambert
- VirtualizedList: Fix initial-render triggering a render of all items (ebcf5fd) - @mikelambert
- CLI: Fix broken default getProjectRoots (f847fbe) - @skevy
- Fix license headers (2cc1195) - @passy
- Fix deepFreezeAndThrowOnMutationInDev-test for Node v8.1.0 (82edc13) - @yungsters
- Fix reference to invariant (3e4a892) - @javache
- Fix configure glog script when building from xcodebuild (5c53f89) - @janicduplessis
- Fix error caused by first argument short when calling warning function (09ba07e) - @alanwyf
New features and enhancements
- Add Components and APIs Overview Guide (4f3da46) - @hramos
- Add marker surrounding entire native module creation (2984628) - @bnham
- Add documentation for supporting custom require types (94116db) - @andrewlinfoot
- Add https options to RN CLI server (2c32acb) - @andrewimm
- Add basic nested VirtualizedList support (63f7efc) - @sahrens
- Add --maxWorkers flag and allow transformers to run in-band (29d9c35) - @cpojer
- FlatList: Add dev validation of the object returned by getItemLayout (a2b0ee0) - @janicduplessis
- FlatList: Add setNativeProps (75508c1) - @reneweb
- Warn when setting pagingEnabled when snapToInterval at the same time (afa4792) - @sahrens
- Add
close
to SwipeableRow (c28595e) - @yungsters - Add a new babel transformer for inlining regenerator-runtime per file (e7c1cf5) - @mjesun
- Add Wix.com to showcase (70ca432) - @hramos
- Remove react-native/packager folder. (236e9e4) - @cpojer
- Docs: New Handling Touches (f42f2df) - @hramos
- Docs: Restore proper ordering in the sidebar (71c812a) - @hramos
- Disable auto-mock by default in as many places as possible @bypass-lint (3360999)
- Remove worker from local-cli (cbb8d6f) - @cpojer
- Promise support for C++ bridge (d062cc2)
- Exposed progressViewOffset to VirtualizedList and FlatList (a0a7d97)
- Implement Systrace integration for Fiber (32a0ee0) - @gaearon
- Check before overriding global.performance (9d4cc7c) - @bvaughn
- Move type definitions used for metro bundler from React Native (4990c5c) - @davidaurelio
- Cleanup
local-cli/core/__tests__
(223eab9) - @yungsters - Node v8 Workaround for
local-cli/core/__tests__
(6407071) - @yungsters - Update remaining PropTypes references (50b11aa) - @andrewimm
- Improved (7707905) - @shergin
- Remove
retainLines
andsourceMaps
options (5c57601) - @davidaurelio - Move jest to version 20 (c9a39b3) - @mjesun
- Update guidelines (0d3b7fe) - @hramos
- Make preset a function to account for different dev settings (bc22a4d) - @davidaurelio
- Native Animated - Call x.**makeNative before super.**makeNative (f704441) - @janicduplessis
- Don't require prettyFormat in every single bundle (5d51511) - @cpojer
- Use possessive 'its' not 'it's' (fd34018) - @jkdf2
- Yoga: The total flex factores need to be a minimum of 1 if any (3b93ba9) - @woehrl01
- Yoga: Fixed assertion caused by invalid layout of hidden Yoga nodes (ac3f345) - @shergin
- Yoga: Refined type for
display
style property (b1e64a4) - @shergin - ImageBackground: use cached styles (8377b30) - @doochik
- Keyboard will show documentation (3ba8e6a) - @DukeNukem1990
- Improve Audio for Maintaining Priority (a26d876) - @yungsters
- Expose
unstable_batchedUpdates
on react-native (5550a25) - @yungsters - Disable subview clipping when sticky headers are enabled (407ec00) - @janicduplessis
- Replace React.createClass with create-react-class (5f8c3e0) - @mojodna
- Control whether Metro tells Babel to lookup .babelrc files (9194b9d) - @ide
- Stop using Map in JSTimers (e9f657f) - @javache
- Merge JSTimers and JSTimersExecution (0ae11f1) - @javache
- Update native references to JSTimers (d795fa1) - @javache
- Allow no args to be passed to rejection callback (b6cfad2) - @javache
- Fixed an incorrect word in the blurTextInput() documentation (bc718fd) - @jstheoriginal
- Clearer code in Button.js (7ee051d) - @dpgao
- Setting bridge up for sharing: allowing native modules to register after init (5c54104)
- react@16 did away with PropTypes; require prop-types instead (8e9322c) - @mojodna
- Remove RN fiber createClass wrapper around View (1199592) - @bvaughn
- Rename Executor to JSExecutor (e2628f9) - @javache
- Improve choco command in docs (6aea140) - @TerribleDev
- Fixing typo in AppContainer (937568b) - @sumkit
- Adding an optional wrapper component to app components (162d92d) - @sumkit
- Jest Mocks for NetInfo and Linking (0797dae) - @hnryjms
- Overflow detection in Yoga (ecd5829)
Android
Bugfixes
- Fixing drawing bug in ReactArt (a660796)
- Fix dev reloading (c639a1f) - @AaaChiuuu
- Don't crash if Window permission isn't granted for dev loading view (56969d5)
- Fix dev loading indicator (e82ceb2)
- Fix package order on ReactInstanceManager (4566f01)
New features and enhancements
- Update overflow docstring to add note on Android (fa147f0) - @joerick
- Add cmd+opt+ctrl+D to globally invoke dev menu for Android (01adc71) - @Yu-w
- Add dev bundle download listener on Android (960e5db) - @janicduplessis
- Add peeking feature in AndroidViewPager (c42080e)
- Corrected spelling of the word "properties" in error message in ReactAndroid/build.gradle (e8df8d9) - @owenauch
- Report Java stack traces in synchronous native module calls (534bbfa) - @javache
- Document URI for Android asset folder images (a38f5b6) - @benvium
react-native link
support for native Android modules developed in Kotlin (d666f30) - @rauliyohmc- Add support for multiple bridge listeners (80bc07f) - @bnham
- Add a bunch of debug log statements (a1321ae) - @AaaChiuuu
- Remove SetBuilder (559805d) - @javache
- Tag INITIALIZE_MODULE marker with the non-zero instance key (e48ad96) - @AaaChiuuu
- Only load core modules once (2b89416)
- Separate port constant for inspector proxy server (1ae54b5) - @Hypuk
- API check for removeOnGlobalLayoutListener in ReactRootView (ecccd06)
- Simplify Catalyst handleMemoryPressure (83faa4b) - @javache
- Bunch of props was unified (1081b21) - @shergin
- Splitting packages into core bridge and core RN (e301a36)
- Disable multipart bundle transmission for now (33057aa) - @jeanlauliac
- Translating NativeArray into NativeMap on getConstants (25d19e3)
iOS
Bugfixes
- Fix scalesPageToFit default property for iOS WebView. (1859486) - @peterp
- Use #import "..." instead of #import (5470bb2) - @mhorowitz
- Fix Apple TV compile errors (31fe832) - @dlowder-salesforce
- Fix timers not firing when running in JS debugger (6482538) - @javache
- Avoid crash when accessing jsContextRef without an executor (c25f356) - @javache
- Fix crash in AccessibilityManager (112e376) - @mmmulani
- Fix references to deprecated assets in separate bundles (12ab236) - @javache
- Fix text node rounding with fractional dimensions matching the rounding factor (b437d61) - @woehrl01
- Fix visibility of installGlobalFunction (e2dff82) - @alexeylang
blurOnSubmit
should betrue
by default for single line (b6cf4ee) - @shergin
New features and enhancements
- Add a section about Platform.Version on iOS (390c8cf) - @zubko
- Add a type cast to RCT_ENUM_CONVERTER for C++ compatibility (eaac3b5) - @jballer
- Update default blue on iOS (f7c89b4) - @xavier-villelegier
- Correct its/it's homophone in NativeModulesIOS.md (2083516) - @elillie
- Make RCTPackagerConnection not depend on RCTBridge (d27ff20) - @fromcelticpark
- Make RCTSamplingProfilerPackagerMethod not depend on RCTBridge (c143313) - @fromcelticpark
- Work around the broken way CocoaPods/Xcode deals with header maps (f3f44ee) - @mhorowitz
- Remove unused folly/File.{h,cpp} from OSS React Xcode project (4fd427e) - @mhorowitz
- Expose content-available APS key for iOS silent push (60783aa)
- Removed support of mysterious "deprecated" scale in RCTImageSource (d0ad6ad) - @shergin
- Introducing -[RCTShadowView canHaveSubviews] (abfa63c) - @shergin
- Support
display: none;
style (a04322f) - @shergin - Implement nativeID prop to allow native code to reference react managed views (70e0455) - @Yu-w
- Implement
presentationStyle
modal appearance (ec68536) - @hnryjms - Remove unused RCTRenderingPerf (94d9f00) - @javache
- Implement
editable
property for RCTUITextField (719f000) - @shergin - Rename
placeholderText
toplaceholder
in RCTTextView (2bf4167) - @shergin - Introducing
RCTBackedTextInputViewProtocol
(6ba8e29) - @shergin - Introducing
RCTTextInput
, base class for both text inputs (3364488) - @shergin - RCTTextInput: Common layout logic was moved to base class (a8c45ac) - @shergin
- Support
<TextInput keyboardType="numeric" returnKeyType="done" />
(2b1795c) - @shergin - Allow RCTModuleData to explicitly opt out from performing its set up on the main queue (2f193b9) - @fromcelticpark
- RCTAnimation & RCTLayoutAnimation were decoupled from RCTUIManager (6312d67) - @shergin
- New (actually old) way to make RCTUITextField editable/non-editable (0fd061e) - @shergin
- Podspec: add required "DevSupport" dependency "InspectorInterfaces.{cpp,h} (5c9cf44) - @heeaad
- ScrollView:
updatedChildFrames
data controlled by prop (62b20ce) - Handle fatal errors thrown by the Chrome debugger (2e42842) - @javache
- Allow video uploads (8dd15f2) - @fred2028
- Make startup errors in the websocket executor invalidate the bridge (c5004d5) - @javache
- TextInput: Fixed
textWasPaste
prop for single line TextInput (44310da) - @shergin - Make OSS CocoaPods build work with or without use_frameworks! (0877f2c) - @mhorowitz
- Update podspec integration instructions (db9c844) - @javache