React Native June 2017 (v0.46.0) released
v0.46.0 on GitHub (npm)
This is June 2017 release, also known as v0.46.0
.
General
Breaking changes
react-native-xcode.sh
now lives in a different location
If you're seeing this error during iOS builds:
../node_modules/react-native/packager/react-native-xcode.sh: No such file or directory
then you need to go into Xcode, click the root of your project, go to 'Build Phases', find the one that says 'React Native', then update the command to point to:
export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh
This change is caused by react-native-packager
being extracted into a separate project (now, named metro-bundler
). Further discussion happens here: #13976 (comment)
Other
- Better TextInput:
contentSize
property was removed fromTextInput.onChange
event (bac84ce) - @shergin - Using Image with nested content now causes warning (yellowbox) (279f5f1) - @shergin
Bugfixes
- Fix code generation for indexed RAM bundles (f91e376) - @davidaurelio
- Fix
react-native link
issue when using multiple manifests (1ad08aa) - @dantman - Fix stickySectionHeader re-render issue (872fbc2) - @nihgwu
- Fix
KeyboardAvoidingView
component (a975c1e) - Fix Native Animated - Call x.**makeNative before super.**makeNative (08f41bc) - @janicduplessis
- Fix TextInput's padding and border size computation and layout (44af4d1) - @shergin
- Fixed ListViewMock unique key error when many sections (a324965) - @tszajna0
- Replace React.PropTypes with prop-types (8e9322c, 50b11aa) - @mojodna,
@andrewimm - Replace React.createClass with create-react-class (658c7bb) - @mojodna
- Fix configure glog script when building from xcodebuild (5c53f89) - @janicduplessis
- Removing test-driver symlink in ios third party install script (713ca68) - @ArturKlajnerok
New features and enhancements
- Native Animated: Prevent views driven by native animated from being optimized away (c87524e) - @janicduplessis
- Fail gracefully for node<4 in react-native-cli (const->var) (699a0be) - @rh389
- Add more prop type for View (05ec850) - @mjmahone
- Add flexWrap warning when used with FlatList (eac399b)
- Add error message when calling sync methods from the Chrome debugger (7837bdb) - @javache
- Add message to remind user to enable wifi (f1284b8) - @sebirdman
- Introducing ImageBackground, replacement for Image which supports nesting views (9637dd4) - @shergin
- Only call callImmediates once per batch (07ee2fb) - @javache
- Automatically request location permission when accessing geolocation (9e026ec)
- Exposes requestAuthorization method (3c64d95)
- Render section footer in SectionList sections with no data (f702cbe)
- ART: Call toString on fontWeight else throws error if passed an integer (7cddaa0) - @davidlrnt
- XMLHttpRequest withCredentials defaults to "true" (9b4a644) - @DanielZlotin
- CLI: Adding shebang to setup_env.sh script (f16df60) - @gabriel-laet
- Forcing to
alignSelf: stretch
was removed from TextInput (4e40521) - @shergin - Singleline TextInput now has intrinsic size (ea9d674) - @shergin
- Multiline TextInput was fixed to match layout logic of singlelined one (4865022) - @shergin
- VirtualizedList: Pass data prop instead of props to _updateViewableItems in _onScroll (803a916) - @Ashoat
- Update inquirer package to better support interactive command line prompts (bada25d) - @Yu-w
- Allow lazy modules registration with the BatchedBridge (485bb70) - @fromcelticpark
- Refactor of Fiber integration with React Fiber + Stack (59e41b4) - @trueadm
- Improve View props and style stuff (1f3140c) - @sahrens
- Cleanup PerformanceLogger (2a3de8f) - @sahrens
- Support
options
param forrequestIdleCallback
(cf51aee) - @jhen0409 - Adding the ability to run GC on a different thread than the one JSContext was created in (578227d)
- Create JS executor and context on main thread w/ custom JSC (e284a9d)
Docs
- Update Getting Started, Upgrading for CRNA (2d1c721) - @hramos
- Additional doc improvements (9bde0fb) - @hramos
- Expand Getting Started, Debugging, Running on Device guides. (674a642) - @hramos
- Clarify pros/cons on different navigation libraries (84f6880) - @hramos
- Update ListView Basics to use FlatList, SectionList. (c419ae8) - @hramos
- Fixed grammar/sentence structure (6b6d269) - @panzer-planet
Yoga
- Fix print edge value (cf5535b) - @yihuang
- Fix right/bottom in absolute layout (130a821) - @yihuang
- Fix absolute positioning in reverse wrapping container (adaa966) - @emilsjolander
- Fix absolute position if wrap-reverse and align-items: flex-end (7c980c5) - @woehrl01
- Parse YogaValue from string. inverse of toString() (e656adc) - @emilsjolander
- Fixing potential measure call with negative size value (2e24197)
- Changed pointScaleFactor usage to avoid accumulating error (6be550d)
- Replace lineBreakMode with ellipsizeMode (e5e3591) - @koenpunt
Packager
- Fix integration test for OSS (a33dd76) - @jeanlauliac
- Use buildID instead of entry path for reporting (b74b2d5) - @jeanlauliac
- ResolutionRequest: extract FileNameResolver (3aedbbb) - @jeanlauliac
- Terminal: remove global state (365c1bf) - @jeanlauliac
- AssetServer: remove fs timeouts (b975342) - @jeanlauliac
- Add
"node"
env to packager.eslintrc
(8d60605) - @davidaurelio - Add preprocess for buck worker (bfc0e8c) - @jeanlauliac
- Add missing dep (d500a8a) - @jeanlauliac
- Add basic top-level integration test (32d35c3) - @jeanlauliac
- Add --dev flag to the packager's dependencies command (d41c9d9) - @fkgozali
- ResolutionRequest: factor error handling in resolution (eb9e4d4) - @jeanlauliac
- Run packager.sh using '.' instead of 'source'. (2f71270) - @sebbarg
- ResolutionRequest: empty module is special case (9aeed39) - @jeanlauliac
- DependencyGraph: @Format (0040b02) - @jeanlauliac
- ResolutionRequest: use _loadAsFile from _loadAsDir (306c929) - @jeanlauliac
- ResolutionRequest: refactor _loadAsDir and dependents (a790430) - @jeanlauliac
- Move packager launcher scripts outside of
packager/
(a710f9a) - @davidaurelio - TransformCache: extract choice of root path outside of class (0b4e772) - @jeanlauliac
- Move packager core logic from
local-cli
topackager
(bea7659) - @davidaurelio - TransformCaching: make choice of cache explicit in the API (a4badb8) - @jeanlauliac
- Upgrade jest-haste-map version (7c06a0d) - @jeanlauliac
- Module: get rid of callbacks (21e3d4d) - @jeanlauliac
- Stop requiring setupBabel from within packager/ folder. (414da08) - @cpojer
- AsyncTaskGroup: @flow (dfb0812) - @jeanlauliac
- Server: more consistent error handling (994d500) - @jeanlauliac
- Separate build modules from require calls when bundling (3f17600) - @davidaurelio
- Change
sourceMappingURL
to line comment (225c4c0) - @davidaurelio - Create an
OutputFn
that can build indexed RAM bundles (918bae2) - @davidaurelio - Simplify
File
type:map
is nullable, but not optional (6b2122b) - @davidaurelio - Covariant properties for
ModuleTransportLike
(f9f1245) - @davidaurelio - Use
ModuleTransportLike
only with$ReadOnlyArray
(9a91ea4) - @davidaurelio - Properly mock
path
in DependencyGraph-test (657ea49) - @cpojer - Remove setupBabel call from main entry point (17e0478) - @cpojer
iOS
Bugfixes
- Native Animations - Fix edge case with restore default values (fc45471) - @janicduplessis
- Fix data race on read/write _instance variable in ModuleData class (5e97be8) - @makadaw
New Features and enhancements
- Add ART library to UIExplorer for iOS, with sample and snapshot test (9e8a39c) - @dlowder-salesforce
- Add newly recommended method for RCTLinkingManager due to deprecation (ff78a8d) - @jasonnoahchoi
- Add support for flashScrollIndicators on iOS (5114b61) - @jeanregisser
- Introduce API for moving screen reader's focus (e40d1a1) - @rigdern
- Support Animated.loop on iOS (11424a8) - @janicduplessis
- Improve z-index implementation on iOS (1658f36) - @janicduplessis
- Introduce API for making screen reader announcements (cfe0032) - @rigdern
- Introducing
-[RCTView reactAccessibleView]
(072d270) - @shergin - Improve accessibility of multiline TextInputs (863f585) - @rigdern
- Expose category property of iOS notifications (dd8ed62) - @webmariner
- Add note for DevSupport in Podfile (152dbcb) - @sunnylqm
- Minimize time holding lock in UIViewOperationQueue (53169b0) - @javache
- Added Cookie Header to XML and Websocket request (047961f)
- Using
drawViewHierarchyInRect
instead ofrenderInContext
for snapshot tests (3df537a) - @shergin - Play sound in local notification only if soundName is specified (9fae268) - @aljs
- Ignore "Frame load interrupted" errors in UIWebView (23a34d4) - @adamjmcgrath
- Fixing compiler warning (407b8b4)
Android
Bugfixes
- Fix memory leak in AccessibilityInfoModule (e9ae31d) - @rigdern
- Fixed TextInput.onContentSizeChange on Android (3539352) - @shergin
- Fixed ImageLoader Mock for Android (7c2ef32) - @kpink224
- Fix memory leak (9dc0385) - @yk3372
- Fixing a race condition that may be caused by the reloadable executor. (63ffa7c)
- Avoid using path for normal border cases (5db2638) - @sjkirby
New Features and enhancements
- Add viewIsDescendantOf for UIManager on Android (663df57) - @Swordsman-Inaction
- Add missing Java files to RN fbjni sync (f0e4a6c) - @javache
- Allow WebView to handle about:blank (26ee9b9) - @rigdern
- Update CatalystInstanceImpl.java (c2eb9f4) - @chnfeeeeeef
- Updating shake handling for Android in ShakeDetector and DevSupportManagerImpl (aeccbd6) - @sumkit
- Remove DialogWhenLarge style from devsupport (37d4fd3)
- Stop SystraceMessage markers with SystraceMessage.endSection (46b3a89) - @michalgr
- Don't include JNI dep in OSS build (964c3a1) - @javache
- Add prop on WebView to enable third party cookies (7807247) - @saleel
- Handle [native code] stack frames (0ee8786) - @adamjernst
- Don't enqueue another UI operation if we're already on the UI thread (213ea30) - @aaachiuuu
- Move to{HashMap,ArrayList} up to Readable{Map,Array} (fe229f8) - @dcestari
- Remove useless code from ReactImageView.RoundedCornerPostprocessor (e0bdb7c) - @plamenko
- Don't block attaching ReactRootView on measuring (8125ce5) - @aaachiuuu