This is a patch release that contains two more Hermes related fixes, thanks to the contributors for helping improving the support!
- Generate correct source map if hermes not enabled (b1f81be by @HazAT)
- Generate source maps outside of assets/ (60e75dc by @motiz88)
You can participate to the conversation for the next patch release in the dedicated issue.
This is a patch release that fixes the binary path to Hermes package, thanks to @zoontek) for creating the PR!
You can participate to the conversation for the next patch release in the dedicated issue.
This is a patch release that fixes the path to Hermes package.
You can participate to the conversation for the next patch release in the dedicated issue.
This is a patch release that includes the Hermes JavaScript Engine announced at Chain React Conf 2019.
Check out the documentation to opt-in and give Hermes a try.
You can participate to the conversation for the next patch release in the dedicated issue.
This feature release of React Native includes many milestone changes for the platform. Please refer to the blog post for selected details. For upgrading users, some of the progress comes with breaking changes; manual intervention may be required for your app. We're also aware that existing CocoaPods integrations using use_frameworks
are not out-of-the-box compatible with this version, but please consider various workarounds while we prepare a long-term solution for a future release. If you're interested in helping evaluate our next release (0.61), subscribe to the dedicated issue here.
Have you ever considered contributing to React Native itself? Be sure to check out Contributing to React Native.
- CLI autolinking support (5954880, da7d3df by @zhongwuzw and @hramos)
- New Intro screen (6b393b2, 233fddb, fe88e9e, aa926e3, a9e8a71, ad4a5d9, and 0245fd7 by @cpojer, @eliperkins, @lucasbento, and @orta)
- Add enhanced accessibility actions support (14b4668 by @xuelgong)
- Add additional accessibility roles and states (1aeac1c)
- Add
isReduceMotionEnabled()
plusreduceMotionChanged
toAccessibilityInfo
(0090ab3 by @estevaolucas]) - Add support for cancelling fetch requests with
AbortController
(h5e36b0c by @janicduplessis)
- Enable views to be nested within Text; this brings feature parity to Android, but be aware that it has some limitations (a2285b1 by @rigdern)
- Add a
touchSoundDisabled
prop to Button, Touchable, and TouchableWithoutFeedback (45e77c8 by @yurykorzun)
- Add
announceForAccessibility
andannouncementFinished
APIs for making screen reader announcemenets (cfe0032 by @rigdern) - Ability to force network requests to use WiFi using the
allowsCellularAccess
property. This can ensure that network requests are sent over WiFi if communicating with a local hardware device and is accomplished by setting a flag. Default behavior of allowing network connections over cellular networks when available is unchanged. (01c70f2 and 916186a by @bondparkerbondand @zhongwuzw) $RN_CACHE_DIR
can now be used to manually specify the iOS build cache directory (845eee4 by @hramos)
- BREAKING Migrated to AndroidX; please see this thread for more details on this change
- Cleanup RedBox message and stack output; it's now far easier to understand (49d26eb by @thymikee)
- Add default
scrollEventThrottle
value to Animated.FlatList and Animated.SectionList; this now behaves consistently with Animated.ScrollView (933e65e by @janicduplessis) - Remove invariant on nested sibling VirtualizedLists without unique listKey props; they now trigger a RedBox (af5633b)
- FlatList and VirtualizedList's default
keyExtractor
now checksitem.id
anditem.key
(de0d7cf by @sahrens) - SectionList's
scrollToLocation
on iOS now countsitemIndex
like Android; both platforms are now consistent, and theitemIndex
value 0 now represents scrolling to the first heading (248a108 by @vonovak) - Slightly speedup core initialization by moving native version check to DEV only (5bb2277 by @mmmulani)
react
is now at v16.8.6 (53cec2d, ee681b7, and 6001acb by @kelset, @mdvacca, @gaearon)react-native-community/cli
is now at v2.0.0 (by @thymikee)flow
is now at v0.98 (0e1dfd4 by @nmote)prettier
is now at v1.17.0 (ff9f8f3)metro
packages are now at v0.54.1 (7ff3874, 343f0a1 by @motiz88)- Replace patched fetch polyfill with
[email protected]
(5447196 by @janicduplessis)
- Use class canonical name for
PARTIAL_WAKE_LOCK
tag (88dbb45 by @timwangdev)
- BREAKING: Split React.podspec into separate podspecs for each Xcode project; your libraries will need to update for this change as well to avoid CocoaPods build errors (2321b3f by @fson)
- Improve handling of native module exceptions; they are now propagated to crash reporting tools with the context and callstack (629708b by @pvinis)
- Switch Slider
onSlidingComplete
event to a non-bubbling event on iOS to match Android (7927437 by @rickhanlonii)
- NetInfo has been removed; its replacement is now available via the react-native-community/netinfo package (5a30c2a by @cpojer)
- WebView has been removed; its replacement is now available via the react-native-community/webview package (, 1ca9a95, and 954f715 by @cpojer and @thorbenprimke)
- Geolocation has been removed; its replacement is now available via the react-native-community/geolocation package (17dbf98 and 9834c58 by @cpojer and @mmmulani)
- Fix
Animated.Value
value after animation if component was re-mounted (b3f7d53 by @michalchudziak) - Consistent reporting native module name on crash on native side (d6c33f9 and b79d7db by @DimitryDushkin)
- Handle null filenames in symbolicated stack trace gracefully in ExceptionsManager (2e8d39b by @motiz88)
- Fix HasteImpl platform name regex (28e0de0 by @CaptainNic)
- Fix a JS memory leak in Blob handling; this resolves multiple leaks around
fetch
(c5c79e5 and 9ef5107 by @janicduplessis) - SectionList's
scrollToLocation
now scrolls to the top of the sticky header as expected (d376a44 by @danilobuerger)
- Fix duplicate resource error in Android build (962437f and eb534bc by @mikehardy and @Dbroqua)
- Reorder operations of native view hierarchy (5f027ec by @lunaleaps)
- Fix performance regression from new custom fonts implementation (fd6386a by @dulmandakh)
- Fix internal test case around disabled state of buttons (70e2ab2)
- Fix extra call of PickerAndroid's
onValueChange
on initialization; now it is only called whenselectedValue
changes (82148da by @a-c-sreedhar-reddy) - Fix PickerAndroid will reset selected value during items update (310cc38 by @Kudo)
- Fix unexpected PARTIAL_WAKE_LOCK when no headless tasks registered. (bdb1d43 by @timwangdev)
- Fix calling TextInput's
onKeyPress
method when the user types an emoji (a5c57b4) - Fix value of TextInput's
onSelectionChange
start and end arguments by normalizing them (2ad3bb2 by @uqmessias) - In
Linking.getInitialURL
method, use theInteractionManager
to wait for the current activity to finish initializing (c802d0b by @mu29) - Disable delta bundles on the first app run (e4aff42 by @wojteg1337)
- In DatePickerAndroid, work around Android Nougat bug displaying the wrong the spinner mode (bb060d6 by @luancurti)
- Fix crash in Animated Interpolation when inputMin === inputMax (7abfd23 by @olegbl)
- Fix symbolication for RedBox and YellowBox when using delta bundling (a05e9f8 by @motiz88)
- Fix CameraRoll crash on mime type guessing (ebeb893 by @Sroka)
- Call designated initializer for SurfaceHostingProxyRootView (3c125e8 by @zhongwuzw)
- Fix RedBox JS symbolication when adding JS engine tag to the message (920632c by @motiz88)
- Fix TextInput's
onSelectionChange
behavior in single line text inputs (fc8008e by @zhongwuzw) - Fix accesibility problem with TextInput Clear Button (4e37d37 by @shergin)
- Fix
renderingMode
not applied to GIF Images (75380aa by @zhongwuzw) - Fix ScrollView
centerContent
not work in some cases (2cdf969 by @zhongwuzw) - Fix crash on performance logger (5d3d398 by @zhigang1992)
- Do not run packager in Release mode (4ea6204 by @lucasbento)
- Fix
code
andreason
arguments being ignored when callingWebSocket.close
(0ac2171 by @jeanregisser) - Fix return value of
Linking.openURL()
(4a5d0bd by @thib92) - When an accessibilityLabel can't be discerned, return
nil
instead of@""
(d4ff5ed by @sammy-SC) - Fix Xcode build when the project's path contains whitespace (f0770b6)
- Move accessibility props to UIView+React (9261035 by @janicduplessis)
This is likely the last patch release for version 59 of React Native for the foreseeable future: it contains an important Android side update for the JavaScript Core, to prevent a great number of crashes mostly related to Samsung devices - thanks to @Kudo for his work on fixing this via 557989a!
Thanks everyone who participated in the discussion.
This is a patch fix release addressing a couple ScrollView regressions, and "future-proof" RN 59 from crashes caused by upgrading Gradle (now can support up to 5.4.1 & 3.4.0 for the plugin) and Xcode 11 Beta 1. You can upgrade to this version without upgrading your tooling.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits. You can participate to the conversation for the next patch release in the dedicated issue.
-
If
isInteraction
is not specified in the config, it would always default totrue
which would block interactions like VirtualizedList updates. This is generally not what you want with useNativeDriver since the animation won't be interrupted by JS. If something does end up interfering with an animation and causes frame drops,isInteraction
can be set manually. (ded7119 by @sahrens)
- Bump Gradle to 5.4.1 & Android Gradle plugin to 3.4.0 (2282c15, 4652392, 184108f, deb41eb by @dulmandakh)
- Fixes wrong time unit of scroll event throttle (ebe2827 by @zhongwuzw)
- Fix Xcode 11 Beta 1 builds (52cda84 by @ericlewis)
This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points (in particular, check the KeyboardAvoidingView
change). Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- Fix regexp on
hasteImpl
(bcd1e2 by @CaptainNic) - Fix sparse array handling in
EventEmitter#listeners()
(f68dc8 by @ide) - Fix VirtualizedList to call
_updateViewableItems
immediately (08141e by @sahrens) - Fix prop overrides of TouchableWithoutFeedback (0c4206 by @aleclarson)
- Fix resolve relative size rendering error in inspector (4884ab by @gandreadis)
- Fix VirtualizedSectionList by making sure to check array bounds (54f91d by @vonovak)
- Update
_scrollAnimatedValue
offset of ScrollView (e0d1b3 by @miyabi) - Fix infinite
setState
in VirtualizedList (c40a93 by @sahrens)
- Fix incorrect opacity behaviour for Text component (f71357 by @shergin)
- Fix Text shadow displays when
textShadowOffset
is{0,0}
(17a81b by @Woodpav) - Add convert compatible of NSString for bridge message data (c37e9c by @zhongwuzw)
- Fix nullability warnings in RCTExceptionsManager (2b7d79 by @jtreanor)
- Fix app to reconnect with metro after the bundler is closed and reopened (c28676 by @rickhanlonii)
- Fix throttle below 16ms on ScrollView (39776a by @sahrens)
- Fix JS errors during bundle load were reported as
UnknownCppException
(84e263) - Add logic to catch
MissingWebViewPackageException
(379874 by @thorbenprimke) - Revert "improve RTL" (f3801d by @thorbenprimke)
- Add listener for non-value animated node (4a82dc by @osdnk)
- Set ScrollView throttle by default (74d740 by @sahrens)
- Make KeyboardAvoidingView with
behavior="height"
resize on keyboard close (7140a7 by @WaldoJeffers) - Update network inspector to have smarter scroll stickiness (57dc37 by @AlanFoster)
This patch release was unpublished.
This patch release was unpublished.
This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- Remove wrapper around ListEmptyComponent (54af5b by @AntoineDoubovetzky)
- Enforced thread safety on UIImplementation methods that mutate the shadowNodeRegistry (f5a318 by @SudoPlz)
- Fixed a
NoSuchKeyException
when parsing JS stack frames without line numbers (d7bd6c by @Salakar) - Fixed
mostRecentEventCount
is not updated (b8aac0 by @jainkuniya)
- Pass back correct dimensions for application window in Dimensions module (72b4cc by @rdonnelly)
- Fixed warning: "RCTImagePickerManager requires main queue setup" (effb02 by @scarlac)
This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- Add
scrollToOverflowEnabled
prop to ScrollView (e3ac329 by @mysport12)
- Fix universal links not working in iOS 12 / Xcode 10 (836a8e0 by @IljaDaderko)
- Fix triangle views (0167cf2 by @zhongwuzw)
This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- Improve RTL support (871290f by @dulmandakh)
- Fix VirtualizedList, SectionList and FlatList behavior on rendering list headers with inverted prop and zero items (e94d344 by @michalchudziak)
- Fix VirtualizedList debug mode crash (d7e7b3e)
- Fix running Metro on Windows (581dc3e and 775553b by @aliazizi and @nazreinkaram)
- Fix IllegalStateException when invalid URL or headers are passed (e4f9ee9 by @dryganets)
- Fix IllegalStateException when tapping next on Android Keyboard (13cb5a9 by @mdvacca)
- Show Perf Monitor after reloading JS (bdf809e by @usrbowe)
- Fix TextInput's
maxLength
when inserting characters at begin (1a35bc5 by @zhongwuzw) - Fix runtime crash in Xcode 10.2 when using
RCT_EXTERN_MODULE
for swift classes (df7ea67)
This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- Crash on pre-26 Android devices when setting TextInput content type (7263a77 by @hramos)
- Crash when scroll to index 0 in a SectionList (699fad7 by @danilobuerger)
- Switch's
trackColor
being reset when toggled (4260907 and becc154 by @dulmandakh and @ejanzer)
- ScrollView offset out of content size (f6516d2 by @zhongwuzw)
- RefreshControl state's race condition (6aca514 by @rostislav-simonik)
- Start Metro packager from project root (392b084 by @MatthieuLemoine)
- TextInputs that are single-line reverting to default text (a38dc73 by @PeteTheHeat)
- Add TLS 1.3 support to all Android versions using Conscrypt; to use this, you must add
implementation('org.conscrypt:conscrypt-android:2.0.0')
tobuild.gradle
(fab86ee by @dulmandakh) - Turn off Metro JS Deltas by default for Android (3f1d2b0 by @PeteTheHeat)
This is a small patch release that addresses two critical issues from the 0.59.0 release.
- Build error warning of Text module (000119d by @zhongwuzw)
Welcome to release 0.59 of React Native! For highlights of this release, please view the dedicated blog post. Thanks to those who gave feedback during the release candidate phase. If you're interested in helping evaluate our next release (0.60), subscribe to the dedicated issue here.
- Add a Metro configuration to the template with inline require/import options; read more about it in the blog post (ae11993 by @cpojer)
- Text and TextInput now has prop maxFontSizeMultiplier (4936d28 by @rigdern)
- TextInput now has prop autoComplete prop (179d490)
- CameraRoll's
getPhotos
now supportsassetType: "All"
to let users pick from video and photos simultaneously (54534e7 by @kesha-antonov) - Text and TextInput now support
textAlign:justify
for android O+ (api level >=26) (d2153fc by sunnylqm)
- TextInput now has prop
rejectResponderTermination
to enable TextInputs inside Swipeables to function properly (11df0ea by @cmcewen) - ActionSheetIOS has a new prop
destructiveButtonIndexes
for anArray<number>
of destructive indexes (67e7f16 by @sdg9) - Add
isEventFromThisApp
toKeyboardEvent
notifications to disambiguate keyboard events when apps are running side-by-side (05f35c2 by @nossbigg) - Allow changing the project path in
react-native-xcode.sh
using env varPROJECT_ROOT
(9ccde37 by @janicduplessis)
React
is now atv16.8.3
(ccefc70 and (2af13b4 by @cpojer and @hramos)Flow
dependency is now atv0.92.0
(5ee7386 by @pakoito)@react-native-community/cli
dependency is atv1.2.1
(a252aee and 5e1504b by @grabbou)- Enhance Flow types definitions for ViewPropTypes (7ff9456 by @danibonilha)
- Clarify error message to direct people to
react-native start
rather thanreact-native bundle
(46aaa02 by @sunnylqm) - BREAKING - removed
OkHttpClientProvider.replaceOkHttpClient
method; please useOkHttpClientProvider.setOkHttpClientFactory
from 0.54+ (7cbdd7b by @cdlewis) - BREAKING - remove
ViewHelper
, useViewCompat
instead; this may also require changing theandroid:theme
to be fromTheme.AppCompat
; read more about it in the blog post (c493cfe by @dulmandakh) - Add nullable annotations to
ReadableMap
,WritableMap
,ReadableArray
,Writable
,ReactPackage
, and native module interfaces; this may impact Kotlin usage (b640b6f, c93cbdf, 7b33d6b, and e6d8ac8 by @dulmandakh) Soloader
is now atv0.6.0
(07d1075 by @dulmandakh)- Android Support Library is now at
v28.0.0
(5bbed43 by @dulmandakh) targetSdkVersion
is now atv28
(818f6bb by @dulmandakh)- Android Plugin is now at
v3.3.1
(51a7ad5 by @dulmandakh) - Enable Java 8 support (38eb2a7 by @dulmandakh)
- Suppress misleading missing permission warnings (d53dbb0 by @dulmandakh)
- Add back
buildToolsVersion
to build.gradle (cf52ab5 by @dulmandakh) - TimePickerAndroid has better Flow types definitions (2ed1bb2 by @yushimatenjin)
ReactActivity
,ReactSlider
,ReactTextView
, andReactPicker
extendsAppCompatActivity
; updates toTimePickerDialogModule
andDatePickerDialogModule
as well (dda2b82, 3b9604f, 52e5136, 833429d, adc1410, c6c5a17, and be361d0 by @dulmandakh)- Fix lint error/warnings that cause older Android crashes (d2fc19f by @dulmandakh)
- The error message on getting Android drawable folder suffix now gives more information (a159a33 by @BrunoVillanova)
SYSTEM_ALERT_WINDOW
permissions available only in debug builds (56fc630 by @dulmandakh)- Add talkback navigation support for links and header (8e5eb63 by @yangweigbh)
- FlatList has
removeClippedSubviews
default totrue
on Android (1a499f4 by @fred2028)
- Moved iOS build cache directory from
~/.rncache
to~/Library/Caches/com.facebook.ReactNativeBuild
(1024dc2 by @sryze) - Keyboard API Event flow types have been improved (7ee13cc by @nossbigg)
- Expose AsyncLocalStorage get/set methods to native code (7b8235a by @ejmartin504)
- Clear RCTBridge launchOptions when bridge is reloaded (19d04a3 by @venik)
The following deprecations are part of our Lean Core initiative; read more about it in the blog post.
- Deprecated MaskedViewIOS as it has now been moved to react-native-community/masked-view (4ac65f5 by @FonDorn)
- Deprecated ViewPagerAndroid as it has now been moved to react-native-community/viewpager (77300ca by @ferrannp)
- Deprecated AsyncStorage as it has now been moved to react-native-community/asyncstorage (ffe3748 by @Krizzu)
- Deprecated Slider as it has now been moved to react-native-community/slider (bf888a7 by @michalchudziak)
- Deprecated NetInfo as it has now been moved to react-native-community/netinfo (d9c0dfe by @matt-oakes)
- Deprecated ImageStore and directed users to
expo-file-system
andreact-native-fs
(62599fa by @EvanBacon)
- Replace deprecated
stringByReplacingPercentEscapesUsingEncoding:
withstringByAddingPercentEncodingWithAllowedCharacters:
(61ca119 by @pvinis)
react-native-git-upgrade
is now officially dead; usereact-native upgrade
instead (which uses rn-diff-purge under the covers) (a6bdacb by @cpojer)
- Remove the previously deprecated TabBarIOS (0269729 by @axe-fb)
- AlertIOS is now replaced with Alert (e2bd7db by @wellmonge)
- KeyboardAvoidingView now shows the correct height after the keyboard is toggled (745484c by @shauns)
- Adds fixes for react-native-windows UWP (dfcbf97 by @rozele)
- The
Map
andSet
polyfills no longer reject non-extensible object keys; also fix hash collision scenario (90850ca by @benjamn) - Corrected StyleSheet's transformation perspective to match iOS's behavior, regardless of screen density (4c10f93 by @syaau)
- Fix
yarn test
in new projects (5218932 by @Esemesek) - Fix issue with
getInspectorDataForViewTag
that caused red screen when toggling inspector (46f3285 by @TranLuongTuanAnh) - Fix
displayName
forImage
; this will make tests no longer mistake it asComponent
(4989123 by @linnett) - Fix regression of VirtualizedList jumpy header (e4fd9ba by @danilobuerger)
- Set
wait_for_recheck=true
to work around crash in Flow (c599625 by @gabelevi) - Fix flow typing of Text (10c8352 by @sahrens)
- Fix
jest
andjest-junit
to be only development dependencies (c7b57f1 by @vovkasm) - Fix layout issue with SwipeableQuickActionButton (ad52f52 by @varungupta85)
- Fix textTransform when used with other text styles on Android (#22670) (3a33e75 by @janicduplessis)
- Fix warnings related to updating to gradle 4.10.1 or higher (5be50d4 by @misaku)
- Fix issue with use of Android API 28 by adding security config for metro access (724d83a, 01d5a3b, 3b0b7ce, and 84572c4 by @Salakar and @dulmandakh)
- Fix Inverted Horizontal ScrollView (32cb9ec by @dmainas)
- Fix crash on CheckBox on older Android versions (58437cd by @vonovak)
- Fix undefined error description in Image
onError
callback (7795a67 by @Jyrno42) - Fix Android crash on animating with
useNativeDriver
(e405e84 by @scisci) - Fix dev settings menu not appearing for certain codebases due to namespace conflicts (9968d0c by @khaled-cliqz)
- Fix exception occurring while fading a TextView (f83281e by @mdvacca)
- Fix StatusBar overwriting previously set
SystemUiVisibility
flags (8afa037 by @rogerkerse) - Prevent
fetch()
POST requests from appendingcharset=utf-8
toContent-Type
header (4cad737 and d7c4c37 by @nhunzaker) - Fix issue with Location that led to exceptions in two cases (2b7346f by @mikelambert)
- Fix TextInput mistakenly capitalizing I's after emojiis (f307ac7 by @dchersey)
- Fix TextView's
setAttrbutedText
for CJK languages on single-line text fields (05ebf77 by @mandrigin) - Fix RCTImageLoader multi thread crash (5ed31ce)
- Fix removing keys of large values from AsyncStorage (27b4d21 by @esprehn)
- Fix overscroll behavior on virtualized lists; behavior is now consistent (4d5f85e)
- Fix Alert to not block input focus and blur (e4364fa by @zhongwuzw)
- Fix broken JSIexecutor search path (2aa2401 by @amccarri)
- Fix potential linker issues when using Xcode project (9f72e6a by @tyrone-sudeium)
- Fix crash when
scrollEnabled
used in singleline textinput (9ff43ab by @zhongwuzw) - Fix crash in gif image usage (d0cd3ca by @zhongwuzw)
- Fix geolocation to not constantly reset accuracy to default of 100 meters (bbcb97a by @omnikron)
- Fix iOS build issue related to missing
DoubleConversion
andglog
tocxxreact
,jsi
andjsiexecutor
subspecs inReact.podspec
file (11c12d5 by @alexruperez) - Fix "'folly/folly-config.h' file not found" build error when using React via CocoaPods (415cc25 by @Salakar)
- Fix image cache to follow MDN strategy (e98d5a2 and fb8ba3f by @zhongwuzw)
- Fix crash due to IllegalArgumentException when creating CookieManage (fee5031 by @mdvacca)
- Fix cursor placement after toggling
secureTextEntry
cursor spacing (c1392c2 by @ericlewis)
This release is fairly small, as we approach stable status for 0.59.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.
- Map TextInput textContentType strings to Objective-C constants (#22611) (2d56e06 by @levibuzolic)
- Don't reconnect inspector if connection refused (#22625) (82c84c5 by @msand)
This release resolves a few bugs and includes a few improvements, listed below.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.
- Fixes capitalized I's when emojiis are present after the text being edited. (#21951) (a4f8820 by @dchersey)
- Fix broken jsiexecutor search path. (#23274) (519ad8c by @amccarri)
- Fix duplicate symbols linker error in xcodeproj (#23284) (805e4fe by @tyrone-sudeium)
- apply Network Security Config file (fixes #22375) (part 2 of #23105) (#23135) (b5270e8 by @Salakar)
- Fix crash for web socket in some race conditions (#22439) (0fc2392 by @zhongwuzw)
- improve Android Network Security config (#23429) (fbd31c5 by @dulmandakh)
This release resolves a few bugs and includes a few improvements, listed below.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.
- bump soloader to
0.6.0
(e1694ee by @dulmandakh)
- fix incorrect type which makes animated gifs not loop forever on device (#22987) (5e87547 by @chrisnojima)
- Fixes for running the simulator (9a8c959 by @osunnarvik), (98bcfe0 by @cpojer) and (8bddcb6 by @cpojer)
This release resolves a regression in StatusBar using these fixes.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.
This release fixes an issue caused by a wrongly reverted merge commit, that caused a short timeframe of commits to not actually be in the original 0.58.0. Those commits have been added to the 0.58 changelog below, as many are intertwined with the original work.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.
There were some regressions with developer tools that prevented react-native run-ios
from working properly in 0.58.0; this patch fix addresses that.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate to the decision process for the next patch release here.
Welcome to first stable release of React Native of 2019! There are a number of significant changes in this version, and we'd like to especially draw your attention to them:
- Modernizing and strengthening flow types for core components
- Breaking changes to
ScrollView
,CameraRollView
, andSwipeableRow
that make it no longer bound to the component instance in certain methods - Support for mutual TLS in WebKit
- Asset serving from directories besides
/assets
- Numerous crash fixes and resolutions for unexpected behavior
Aside from those:
-
if you are an iOS developer, you'll need to manually link
JavaScriptCore.framework
when upgrading; this can be done via Xcode, and following the steps shown here. -
Android developers, please note that Android's target SDK 27 is supported. Work is still underway to land target SDK 28 support, and it will come soon.
Thanks to those who gave feedback during the release candidate phase. If you're interested in helping evaluate our next release (0.59), subscribe to the dedicated issue here.
- Add support for
publicPath
to enable serving static assets from different locations (0b31496 by @gdborton) - Add TouchableBounce now has a simple
bounce()
function that can be used to trigger a bounce without callbacks (383ea99)
- Bundler server host can now be set using Android System Properties, making for easier debugging across multiple apps or app installs
adb shell setprop metro.host
(e02a154 by @stepanhruda) - Native Modules can now reject a promise with an additional
WritableMap
arg for extra properties (userInfo
). See the interface defined inPromise.java
for available methods. This is accessible in JavaScript asError.userInfo
. This is to match iOS's existingError.userInfo
behaviour. See PR for examples. (#20940 by @Salakar) - Native Modules now expose a
nativeStackAndroid
property to promises rejected with an Exception/Throwable - making native error stacks available inside Javascript:Error.nativeStackAndroid
. This is to match iOS's existingError.nativeStackIOS
support. See PR for examples. (#20940 by @Salakar)
- Add
moduleForName: lazilyLoadIfNecessary
to RCTBridge.h to lookup modules by name and force load them, plus various improvements to LazyLoading (d7a0c44, 6534718, d7865eb, 04ea976, 1f394fa, 80f92ad, and 81b74ec by @dshahidehpour, @fkgozali, and @mmmulani) - Add ability for WebView to
setClientAuthenticationCredential
whenuseWebKit={true}
for mutual TLS authentication (8911353 and 8911353 by @mjhu)
- Major improvements to Flow types for Core Components (499c195, fbc5a4f, f9050e0, 6476151, c03fc40, 69213ee, 136dfc8, 3c0211b, c127000, 636e146, 6fa997d, 35a65cd, 7927497, 45c5183, a97d104, fb4825a, 84c5416, 3649a50 by @mottox2, @saitoxu, @RSNara, @watanabeyu, @Tnarita0000, @exced, @nd-02110114, @flowkraD)
- Many public components were converted to ES6 classes (ScrollView by @thymikee, CameraRollView, SwipeableRow and ProgressBarAndroid by @exceed, ProgressViewIOS by @empyrical, SegmentedControlIOS, ToolbarAndroid by @nd-02110114
- Flow dependency is now at
v0.85.0
(adc8a33f by @samwgoldman) - metro dependency is now at
v0.49.1
(f867db3, 8888295, 31bb551, de60e86, and a525941 by @alexkirsz and @rafeca) - jest dependency is now at
v24.0.0-alpha.6
(1b4fd64, 66aba09, and 06c13b3 by @rafeca and @rubennorte) - fbjs-scripts dependency is now at
v1.0.0
(#21880) (cdbf719 by @jmheik) - folly dependency is now at
v2018.10.22.00
(a316dc6, 19a7ecc, and a70625a by @Kudo and @radko93) - React is set to
16.6.3
now via sync for revisions 4773fdf...6bf5e85 (0cb59b5 and e54d1e2 by @yungsters) - Clearer error messages when hot reloading (c787866 by @alexkirsz)
- Allow CxxModules to implement functions which take two callbacks (8826d8b by @acoates-ms)
-
Public methods of components converted to ES6 classes are no longer bound to their component instance. For
ScrollView
, the affected methods aresetNativeProps
,getScrollResponder
,getScrollableNode
,getInnerViewNode
,scrollTo
,scrollToEnd
,scrollWithoutAnimationTo
, andflashScrollIndicators
. ForCameraRollView
, the affected methods are:rendererChanged
. ForSwipeableRow
, the affected methods are:close
. Therefore, it is no longer safe to pass these method by reference as callbacks to functions. Auto-binding methods to component instances was a behaviour ofcreateReactClass
that we decided to not preserve when switching over to ES6 classes. (you can refer to this example) -
Native Modules in Android now require
@ReactModule
annotations to access.getNativeModule
method on theReactContext
. This is how your updated Native Module should look like:// CustomModule.java // ... + import com.facebook.react.module.annotations.ReactModule; + @ReactModule(name="CustomBridge") public class CustomModule extends ReactContextBaseJavaModule { // ... @Override public String getName() { return "CustomBridge"; } // ... }
- Optimize
PlatformConstants.ServerHost
,PlatformConstants.isTesting
, andPlatformConstants.androidID
for performance (2bf0d54, 339d9d3, and 9f9390d by @stepanhruda, @fkgozali, and @axe-fb)
- Fix potential UI thread stalling scenario from Yoga JNI bindings (2a8f6c3 by @davidaurelio)
- Fix crash happening due to race condition around bridge cxx module registry (6770b53, 1c31919, and 188cbb0 by @PeteTheHeat)
- Fix View and Text's displayName; show the specific name rather than generic "Component" (7a914fc by @rajivshah3)
- Fix
react-native init --help
so that it doesn't returnundefined
(58732a8 by @ignacioola) - Fix
react-native --sourceExts
(ce86080 by @elyalvarado) - Fix accidental showing of Modal when
visible
prop is undefined or null (cc13a73 by @MateusAndrade) - Fix crash during VirtualizedList pagination (5803772)
- Fix scenario where removing a module with remote debugging and Delta bundles may cause incorrect stack traces (bea57d8 by @alexkirsz)
- Fix regression in StyleSheet
setStyleAttributePreprocessor
(0408533 by @brentvatne) - Fix React Native AsyncMode and DevTools (aacb06c by @bvaughn)
- Fix crash when removing root nodes (b649fa9 by @ayc1)
- Fix various ReactInstanceManager deadlocks and race conditions (df7e8c6, 309f85a, and be282b5 by @ayc1)
- Fix IllegalArgumentException when dismissing ReactModalHostView and DialogManager (e57ad4e and 38e01a2 by @mdvacca)
- Fix incorrect merged asset path with flavor for Android Gradle Plugin 3.2 (e90319e by @yatatsu)
- Fix HTTP connection ontimeout callback (a508134)
- Fix websocket properly closing when remote server initiates close (2e465bc by @syaau)
- Fix compatibility issue for Android 16 device (5939d07, f22473e, and d4d457b by @gengjiawen)
- Fix issue where
Image.resizeMode
isn't respected while source is loading, resulting in unexpected padding (673ef39 by @dulmandakh) - Fix Android 28's inverted ScrollView so that momentum is in the proper direction (b971c5b by @mandrigin)
- Fix HTTP connection timeout callback to be appropriately called (a508134)
- Fix compatibility issue with Android 16 device (5939d07 by @gengjiawen)
- Fix crash when releasing RN views and removing root nodes(83405ff and b649fa9 by @ayc1)
- Close websocket properly when remote server initiates close (2e465bc by @syaau)
- Workaround a wrong fling direction for inverted ScrollViews on Android P (b971c5b by @mandrigin)
- Fix Image to respect
resizeMode
fordefaultSource
images rather than showing padding while loading (673ef39 by @dulmandakh)
- Fix case where content of inline views didn't get relaid out (798517a by @rigdern)
- Fix issue with ImagePickerIOS's inconsistent image when using the front-facing camera (4aeea4d)
- Fix race condition and crash around shutdown of the JSC for iOS 11 and earlier (bf2500e by @mhorowitz)
- Fix crash in NetInfo's _firstTimeReachability (eebc8e2 by @mmmulani)
- Fix case where inline view is visible even though it should have been truncated (70826db by @rigdern)
- Fix crash with ScrollView related to content offsets (f6566c7 by @shergin)
- Fix an issue where CameraRoll wasn't showing the front-facing camera consistently during capture and preview (4aeea4d)
- Fix case where inline view is visible even though it should have been truncated (70826db by @rigdern)
It is possible that you'll face an AAPT error regarding missing resources, here is an example of this error, in this case, you should try to update the build tools versions to buildToolsVersion = "28.0.2"
in your android/build.gradle file. If you maintain a react-native library which uses native code you should avoid using hardcoded versions of the build tools and use the packaged version numbers, here is an example you can follow
NOTE WELL: when you upgrade to this version you NEED to upgrade react
and react-test-renderer
to version "16.6.3"
.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate to the decision process for the next release here.
- Fix: Add displayName to ActivityIndicator (#22417) (1d8744f)
- Switch: Improve Accessibility (83d1e85 by @yungsters)
- React sync for revisions 3ff2c7c...6bf5e85 (8d1d47a by @yungsters)
- Extend reason message for
RCTFatalException
(#22532) (ba50151 by @zackzachariah)
- Remove trailing slash from origin header if no port is specified (#22290) (f7e3def)
- Fix text alpha bug (c43b741 by @necolas)
- fix possible NPE in StatusBarModule (1b169fc by @mdvacca)
- Fixes animated gifs incorrectly looping/not stopping on last frame (#21999) (95ef882 by @staufman)
- Fix ListEmptyComponent is rendered upside down when using inverted flag. (#21496) (30c2fb8 by @hyochans)
- Fix bug in comparison logic of object property (#22348) (692fc2e by @vreality64)
- Fix dispatch of OnLayout event for first render (3576819 by @mdvacca)
- KeyboardAvoidingView: Duration cannot be less then 10ms (#21858) (472e978)
- default hitSlop values to 0 (#22281) (274f5b8 by @Taylor123)
- Fixed for supporting mediaPlaybackRequiresUserAction under iOS 10. (#22208) (79011d7 by @ifsnow)
- Use main.jsbundle in iOS template for production build (#22531) (8ba5d4c by @radeno)
- Use relative path for SCRIPTDIR (#22598) (0301a2e by @sunnylqm)
- Fix UIScrollView crash (b739c11 by @shergin)
- Avoid using
-[UITextView setAttributedString:]
while user is typing (#19809) (26775d5)
NOTE WELL: when you upgrade to this version you NEED to upgrade react
and react-test-renderer
to version "16.6.1"
.
This patch release fixes version 0.57.6 about losing focus in TextInput
because of 356ac5d.
Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
INFO NOTE: It's highly recommended that you skip this version and upgrade to 0.57.7.
NOTE WELL: when you upgrade to this version you NEED to upgrade react
and react-test-renderer
to version "16.6.1"
.
This patch release fixes a number of crashes, resolves build issues (both for iOS and Android). Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- Add iOS 12 textContentType options (#21079) (d0c8cb1 by @ultramiraculous)
- Remove useless additionnal blur call (#22156) (356ac5d)
- Improving Modal
visible
prop check to handle undefined and null (#22072) (6c85356 by @MateusAndrade) - Fix crash in nativeInjectHMRUpdate (#22412) (0b4fd62 by @vovkasm)
- Fix IllegalArgumentException when dismissing ReactModalHostView (e360b0b by @mdvacca)
- Fix regression in StyleSheet.setStyleAttributePreprocessor (#22262) (5ba44f7 by @brentvatne)
- Fix React Native AsyncMode and DevTools (f41383f by @bvaughn)
- CxxReact: Silence 'unused lambda capture' warnings in open-source (#22240) (87c9d92 by @empyrical)
- Fixed HTTP connection timeout on Android (#22164) (695784a)
- resizeMode applies to Image.defaultSource (#22216) (ec1bbfd by @dulmandakh)
- Android: Close websocket properly when remote server initiates close (#22248) (6e7576b by @syaau)
- Workaround a wrong fling direction for inverted ScrollViews on Android P (#21117) (90cb45f by @mandrigin)
- Fix crash when releasing RN views (de3711e by @ayc1)
- iOS: Support inline view truncation (#21456) (ac5aaec by @rigdern)
- NetInfo: try to solve crash with releasing _firstTimeReachability (35c1c27 by @mmmulani)
- Generate ip.txt before SKIP_BUNDLING check (#20554) (26b5a6e by @keatongreve)
- Revert [Performance improvement for loading cached images on iOS ] (7eeb305 by @kelset)
- Fix inability to remove 'Disabled' state from AccessibilityStates (79b3311)
NOTE WELL: when you upgrade to this version you NEED to upgrade react
and react-test-renderer
to version "16.6.1"
.
This patch release fixes a number of crashes, resolves build issues (both for iOS and Android), and brings React to v16.6.1. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.
- React is now at v16.6.1 (19c8164 and 76c99f2 by @yungsters)
- Performance improvement for loading cached images (ce09d6e and 68dee8a by @esamelson and others)
- Fix crash in VirtualizedList during pagination (483d4e2)
- Fix polyfilling of regeneratorRuntime to avoid setting it to undefined in some situations (53616e6 by @rafeca)
- Fix View, Text, and ActivityIndicator's
displayName
(311ba9a and 0b32a65 by @rajivshah3 and others) - Fix crash that happens when a component throws an exception that contains a null message (e8c9f3c by @mdvacca)
- Fix incorrect merged asset path with flavor for Android Gradle Plugin 3.2 (09184a7 by @yatatsu)
- Fix crash in ReadableNativeArray.getType when size of ReadableNativeArray's length > 512 (8206122 by @dryganets)
- Fix crash in rapid use of NetInfo.getCurrentConnectivity (03bc46d by @mmmulani)
- Fix Xcode 10 errors relating to third-party (277c19c by @mmccartney)
- Fix build errors when path to
$NODE_BINARY
contains spaces (ce25c54 by @sundbry) - Fix case where content of inline views didn't get relaid out (1131463 by @rigdern)
- Fix InputAccessoryView's safe area when not attached to a TextInput (4420e39 by @janicduplessis)
NOTE WELL: when you upgrade to this version you NEED to upgrade react
and react-test-renderer
to version "16.6.0-alpha.8af6728"
(next version, 0.57.5, will update to 16.6.0
, and it will come soon). Also, please check the Known issues section below, especially if you are using Xcode 10.
Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!
- Android textTransform style support (22cf5dc by Stephen Cook)
- Add deprecation notice to SwipeableListView (99471f8 by @TheSavior)
- Consolidate native dependencies versions (ba608a2 by @dulmandakh)
- bump okhttp3 to 3.11 (10fc548 by @dulmandakh)
- Android: Send
<Text>
metrics in onTextLayout events (737f937 by @mmmulani) - Use TextLegend example in Android as well (335927d by @mmmulani)
- Bump [email protected] (b951499 by @peat-psuwit)
- Text: send metrics after rendering (iOS) (64a5253 by @mmmulani)
- Allow specifying iOS version for run-ios with simulator option (0fab27c by @elyalvarado)
- Relax the requirement that lazy module cannot be initialized on the main thread (dbc864c by @spredolac)
- Fix crashes on invalid regex (298f14d by @RSNara)
- Fix pull to refresh refresh component clipping on Android (8a3a0ad by Andy Huang)
- ListView requestAnimationFrame leak (70b5eb3 by @exced)
- reverted Update bad method
- Fix accessibility role crash (139559f by Haseeb Saeed)
- Fix accessibilityRole value lookup (1f96ff6 by @ayc1)
- Fix DynamicFromMap object pool synchronization (b0d68c0 by @haitaoli)
- Back out "[react-native][pr] Rounded corner rendering fixed on Android N." (bb407fa by Jonathan Lee)
- Fix onTextLayout metrics on Android when using alignText (1c240ae by @mmmulani)
- Cleaning up imports in ViewGroupManager (082a869 by @mdvacca)
There are a few issues that don't have a finalized solution (as it happens for 0.x projects). In particular:
-
when using Xcode 10 and
react-native init
, your build may fail due to third-party build steps (#20774). There is a commit we are planning to cherry pick in a future release that should help - in the meantime, you should be able to run these commands from the project folder to fix the issue (you should need to do it only once per project):cd node_modules/react-native scripts/ios-install-third-party.sh cd third-party/glog-0.3.5/ ../../scripts/ios-configure-glog.sh
-
React
16.6.0
works for the most part, aside from the Context API (check this issue) - and if you are eager to test the new React Hooks you will have to be patient, as they are not production ready and16.7.alpha
is not yet supported by React Native.
NOTE WELL: when you upgrade to this version you NEED to upgrade react
and react-test-renderer
to version "16.6.0-alpha.8af6728"
. Also, please check the Known issues section below, especially if you are using Xcode 10.
Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!
- React sync for revisions ade5e69...d836010 (049e56e by @yungsters)
- React: Bump Canary Version (a0b7854 by @yungsters)
- FBJS: Upgrade to ^1.0.0 (2134102 by @yungsters)
- Bump [email protected] (2784a03 by @rafeca)
- Update to Detox 9 (47a1b04 by @kelset)
- Add Deprecation Warning to ListView (25a3cff by @TheSavior)
- Deprecate legacyImplementation of FlatList (131db26 by @TheSavior)
- bump Android NDK to r17c (b7d0594 by @dulmandakh)
- Resolve protocol http, https when not in lowercase (09178f8 by @hyunjongL)
- Normalize scheme for URL on Android (b1aed4d by @radeno)
- Bump up the buffer size and show a warning if the trace might be truncated (a4ef256 by @alexeylang)
- Fix default accessibility delegate (677f1de by @ayc1)
- Fix accessibility role/label (049e56e by @ayc1)
- When converting arguments JS->Java, handle integers correctly (413e7c8 by @mhorowitz)
- Fix CameraRoll.getPhotos() crash on Android if device has a problematic video asset (2658048 by @naxel)
- Android ScrollView fix for snapToInterval not snapping to end (1fa7150 by @olegbl)
- Fix for InterpolatorType crash (300ba7a by @ejanzer)
- Update bad method (1592a8d by @grabbou)
- Dealloc first time RCTNetInfo reachability callback (9ae5bd0 by @mmmulani)
- iOS: fix the baseline issue when displaying a mixture of different-language characters (ce8dddb by @BingBingL)
- Fix artifacting on RN-drawn borders with asymmetric radii (dba2235 by @jamesreggio)
- check isAvailable key on simulator object (9e6212a by @antonychan)
- ios-simulator: change default iphone version (1d1a41e by Vitor Capretz)
There are a few issues that don't have a finalized solution. In particular, when using Xcode 10 and react-native init
, your build may fail due to third-party build steps (#20774). There is an open pull request which we are testing and hope to land soon (#21458). In the meantime, you can find a workaround here: facebook/react-native#20774.
Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!
- Android subpixel text (c17787e by @kevinresol)
- ReactScrollView should account for
overflow: scroll
(e6677b0 by @mcolotto) - bump metro 0.47.0 (4faa0e6 by @rafeca)
- Use babel runtime instead of relying on global babelHelpers and regenerator (60b05ca by @janicduplessis)
- React: Upgrade to react-devtools@^3.4.0 (a1cf657 by @yungsters)
- Change new Date() to Date.now() to save on date allocations (ddce06f by @dulinriley)
- Make config object read-only (279c090 by @rafeca)
- Cleanup the transformer flow types (920cf54 by @rafeca)
- bump metro 0.47.1 (aecf6df by @rafeca)
- Android ScrollView support for
overflow: visible
(5906c26 by @olegbl) - Expose a getter for overflow setting in ReactViewGroup (bc973d2 by @kmagiera)
- Add workaround for Android Gradle Plugin 3.2 change to asset dir (a4fed6e by @edilaic)
- Fix HEAD request failing with
Invalid response for blob
(9e377c3 by @anthonyhumphreys) - Check if child view != null before dropping (8744e00 by @chrusart)
- Fix event handlers for DPad arrows on Android TV (9ac2877 by @krzysztofciombor)
- Rounded corner rendering fixed on Android N (b460f0d by @dryganets)
- Android: fix cookies lost on Android 5.0 and above (b01ac3b by chenwenyu)
- allow zero offset when shadow radius is nonzero (b7ba225 by Timothy Kukulski)
- Android ScrollView fix for pagingEnabled (0869e54 by @olegbl)
- Remove global babelHelpers and regenerator (5627616 by @janicduplessis)
- Remove overflow hidden killswitch (f1fabe5 by @ayc1)
- Remove absolute path parameter from transformers (e2b9b71 by @rafeca)
We are trying, for 0.57, to approach it as a version with a longer "support", while waiting for some features to land that will allow for 0.58 to be cut.
Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!
- Expose scrollEnabled as iOS prop for TextInput (cd091e8 by Chun Chen)
- Give RNPM the ability to look for plugins in
@Scoped
modules (e8345cc by empyrical) - Upgrade babel-eslint to 9.0.0 (87b5672 by @rafeca)
- bump metro 0.45.6 (7bac056 by @rafeca)
- Making RCTIsIPhoneX() return true for the R and Max models (e884d7f by @shergin)
- Way to register RCT_MODULE in Plugin2.0 instead of +load (5f85b25 by Jeff Thomas)
- Update RCTLinkingManager.h to explicitly state the 'nullability' of parameters (bf84166 by Warren Knox)
- Pass the maxWorkers config param correctly to Metro (202715c by @rafeca)
- Fix ignored --projectRoot/watchFolders arguments ((fb109e9 by @oblador)
- Debug only code were leaking into release builds on iOS. ((0a5eefb by @dryganets)
- Fix RCTNetInfo first time connection status (4ea3ac7 by @karanjthakkar)
Welcome to the 0.57 release of React Native! This release addresses a number of issues and has some exciting improvements. We again skipped a monthly release, focused on quality by extending the release candidate phase, and let some upstream packages reach stable for inclusion.
This release includes 599 commits by 73 different contributors! In response to feedback, we've prepared a changelog that contains only user-impacting changes. Please share your input and let us know how we can make this even more useful, and as always let us know if you have any feedback on this process.
- Accessibility APIs now support accessibility hints, inverted colors, and easier usage of defining the element's role and states; read more at @ziqichen6's excellent blog post
- On iOS,
WKWebView
can now be used within theWebView
component; read more at @rsnara's awesome blog post - Better support for out-of-tree platforms. For details, please refer to the discussion that the community used to get this up and running (there will be a new page in the docs dedicated to it too) - huge props to @empyrical for working on this!
- Android tooling has been updated to match newer configuration requirements (SDK 27, gradle 4.4, and support library 27); building with Android plugin 3.2 doesn't work due to the gradle scripts, so please stay on Android Studio 3.1 for now
- Support Babel 7 stable landed! Be sure to read here about using TypeScript and check out the Babel 7 migration guide for help migrating.
- Metro has been upgraded (with Babel 7 and better transformer support), and in the next major release we plan on having two new features (ram bundles and inline requires) optional for you all to use - you can read how it will happen here; moreover, if you have a custom packager config, we recommend you read also the "updating to this version" section.
- Flow, React, and related packages have also been updated; this includes working support for the React Profiler.
As mentioned a few times in the past, the core team is reviewing the repository to trim it to the base React Native features in order to make the whole ecosystem more maintainable (by using a divide-et-impera approach, the community will move faster and enable pull requests to be reviewed and merged quicker). This change requires extracting some components into their own separate repos and removing old, unused code (details here).
0.57 is not directly affected by any changes, but we want you to know that:
WebView
will be moved to its own repo at react-native-community/react-native-webview. There is already a base implementation there. Help us out by giving that a try, and expect thatWebView
will be deprecated soonNavigatorIOS
will be fully removed from the main codebase starting 0.58.0 (via this commit); it is now deprecated
-
Upgrade the version of React Native in the
package.json
from0.56.0
to0.57.0
, and the React version to16.5
-
Change the babel-preset dependency from
"babel-preset-react-native": "^5",
to"metro-react-native-babel-preset": "^0.45.0",
, then change the.babelrc
configuration to:{ "presets": ["module:metro-react-native-babel-preset"] }
-
Ensure that you have all the babel dependencies to version
^7.0.0
(you may also need to add"babel-core": "7.0.0-bridge.0"
as a yarn resolution to ensure retro-compatibility). The Babel team has released a tool, babel-upgrade, that should help you in this migration. -
Upgrading android gradle version to 4.4
- In your project's
android/gradle/wrapper/gradle-wrapper.properties
file, change thedistributionUrl
tohttps\://services.gradle.org/distributions/gradle-4.4-all.zip
- In
android/build.gradle
file addgoogle()
right abovejcenter()
in bothbuildscript
andallprojects
repositories. Then change Android build tools to version 3.1.4classpath 'com.android.tools.build:gradle:3.1.4'
- In
android/app/build.gradle
file update all yourcompile
statements to beimplementation
, e.g.implementation 'com.facebook.fresco:animated-gif:1.10.0'
- Do note that when running your app from within Android Studio, you may encounter
Missing Byte Code
errors. This is due to a known issue with version 3.1.x of the android tools plugin. You'll need to disable Instant Run to get past this error.
- In your project's
-
If you have a custom packager configuration via
rn-cli.config.js
, you probably need to update it to work with the updated Metro configuration structure (for full detail refer to Metro's documentation); here are some commonly encountered changes torn-cli.config.js
:-const blacklist = require('metro/src/blacklist') +const blacklist = require('metro-config/src/defaults/blacklist') // ... module.exports = { + watchFolders: alternateRoots, + resolver: { + blacklistRE: blacklist + }, + transformer: { + babelTransformerPath: require.resolve('./scripts/transformer.js'), + }, - getProjectRoots() { - return [ - path.resolve(__dirname), - ].concat(alternateRoots) - }, - getBlacklistRE() { - return blacklist; - }, - transformModulePath: require.resolve('./scripts/transformer.js'), }
-
Run
yarn
to ensure that all the new dependencies have been installed
- Add .nvmrc and ensure node version required is compatible with ESLint 5 (30b9d81 by @slorber)
- Major improvements to accessibility features (9f01e4c, b5b704d, c36e8b3, 40f6998, c1d0ccd, 679bff2, 10b603f, d9eeae9, 3cfa7ae, 5acb721, 5741f77, d0b86ec, e739143, c27b495, 5aa040d, 03036f7, 3bedc78, ca01290, 121e2e5, 1bc5226, 48b3d13, ef3d8b2, 5f8b44f, 50e4001, and f39d092 by @ziqichen6)
- Add
YogaNodeProperties
implementation based onByteBuffer
(0c97e75 and 23657cc by @davidaurelio) - Add
FlatList
andSectionList
to Animated exports (daa7c78 by @yunyu) - Adding new styling props to
FlatList
/VirtualizedList
forListHeaderComponent
andListFooterComponent
(a2675ce) - Added more info to Module Registry systraces (c7fdd27 by @axe-fb)
- Added support for out-of-tree platform plugins via a new
haste
field inpackage.json
; read more in the docs entry (6bcd51a by @empyrical) - Added
snapToOffsets
toScrollView
and made a number of fixes tosnapToInterval
as well (ef7e99c by @olegbl)
- Allow registering custom packager command handlers (b3ef1c3 by @fkgozali)
- Implement
AccessibilityInfo.setAccessibilityFocus
for Android (be715ec by @draperunner) - Add Support for
overflow
style property (b81c8b5 and bbdc12eby @yungsters)
WebView
can now useWKWebView
internally if you passuseWebKit={true}
(e90d9ca, 9b3a6ec, f7f9d01, 94560ca, 06cce04, 1c3af59, 5662598, 1984f4b, 1b73e76, d0b5a38, 0fa5bd8, 527792a, ee971a7, d29c253, 0009d09, 078799f, f46dbc2, 262d286, 959aacf, and e0df3a1 by @rsnara)- Add
accessibilityHint
for iOS (253b29d by @draperunner)
- [BREAKING] In the CLI,
unbundle
is nowram-bundle
(ebf5aea by @jeanlauliac) - Bump minimum Node version to 8.3 (#20236) (e64e13f by @hramos)
- Updated React (70913a4, b7bb25f, and 0b30129 by @acdlite, @hramos, and @yungsters)
- Upgrade Flow to v0.76.0 (eac34e3 by @gabelevi)
- Upgrade jest to 23.4.1 (51cf9eb by @rafeca)
- Upgrade babel-eslint to v9.0.0-beta.2 with better support for Flow (abf1188 by @rubennorte)
- Upgrade ESLint to 5.1.0 (0f2f0ca by @rubennorte)
- Upgrade Babel to v7.0.0 (b9d1c83, 724c749 by Peter van der Zee, and 9f83fcc by @rubennorte and @rafeca)
- Metro is now at v0.45.0 (169d683, bda84a3, 5288656, 1bfa422, 96939ad by @CompuIves and @rafeca)
- Hide pre-bundled notification when not on dev mode (edf7100 by @yancouto)
- Refined
StyleSheet.compose
Flow Type (50a481d by @yungsters) - Catch JS bundle load failure and prevent calls to JS after that (201ba8c by @fkgozali)
- Use new Metro configuration in react-native cli (a32620d and aaf797a by @CompuIves)
- Whitelist
react-native-dom
in haste/cli config defaults (c4bcca6 by @vincentriemer) - In the CLI, don't override
metro.config.js
settings (3afe711 by @rozele)
- Public methods of Image (
blur
,focus
,measure
,measureInWindow
,measureLayout
,setNativeProps
) are no longer bound to the image component instance. Therefore, it is unsafe to pass these methods by reference (i.e: as callbacks) to functions. So, things likesetTimeout(this._imgRef.focus, 1000)
will no longer work. Please instead do:setTimout(() => this._imgRef.focus(), 1000)
.
Image
source without a uri now returns null (28c7ccf by @himabindugadupudi)targetSdkVersion
is 26 (bfb68c0 by @dulmandakh)- Upgrade NDK to r17b (6117a6c by @dulmandakh)
- Upgrade NDK toolchain to 4.9 (ccdd450 by @dulmandakh)
- Upgrade Android Support Library to version 27.1.1 and set compileSdkVersion to 27; buildToolsVersion comes along for the ride, too (d9868f7 and 5992f8d by @dulmandakh)
- Upgrade Android gradle plugin to 3.1.4, Gradle wrapper to 4.4 (6eac2d4 and 33d20da by @gengjiawen and @dulmandakh)
- Upgrade to soloader 0.5.1 (b6f2aad by @gengjiawen)
- Upgrade mockito to 2.19.1 (3ea803a by @dulmandakh)
- Upgrade glog to 0.3.5 (b5fca80 by @dulmandakh)
- Fixed builds on Windows machines (3ac86c3 by @rafeca)
- Fixed building tvOS (1f1ddd0)
- Fixed
TextInputState
'scurrentlyFocusedField()
(b4b594c by @janicduplessis) <VirtualizedList>
fix for jumpy content wheninitialScrollIndex
specified (e0c7363 by @rbrosboel)- Fix local-cli assetRegistryPath and middlewares (f05943d by @janicduplessis)
- Fix issue with when all are
flexGrow
andflexShrink
set to 0 except for one (90a408e by @priteshrnandgaonkar) - Fix react-native CLI's debugger UI path and metro host/port arg usage (5067540 by @Kureev)
- Hotfix to include
react-native-windows
in hasteImpl accepted paths (5494274 by @rubennorte) - Fix some classes of incorrect Flow errors for
Animated
(db2159d by @yunyu) - Fixed a typo in DockerTests.md (c1831d5 by @kant)
- Fix invalid use of destructuring in jest preprocessor (9d5bd50 by @umairda)
- Fixed a CLI crash when using old versions of node (9a4c21f by @keksipurkki)
- Fix issue with AsyncStorage not behaving properly on Android 7+ (1b09bd7)
- Fixed extreme
<TextInput>
slowness (5017b86 by @gnprice) - Fixed
<TextInput>
placeholder not being completely visible (8402232 and 86f24cc by @jainkuniya) - Fix Horizontal
<ScrollView>
's scroll position during layout changes with RTL content (de57327) - Fix Horizontal
<ScrollView>
overflow issue (d5465a9) - Fixing crash on SDK 15 on ReactTextInputLocalData (1bb2bea)
- Fix Drawing Rect for ReactScrollView (6a16bec by @yungsters)
- Fixed NoSuchKeyException Thrown From ReadableNativeMap bysafely unwrapping ReadableMap by defaulting to 0 if key not present (1a6666a by @Bhavik-P)
- Fixed runAndroid to enable the use of a package on port <> 8081 for Windows (3cd0737 by @ihenshaw)
- Don't crash on upload retry when trying to fetch on a varying quality network (7a246e4 by @dryganets)
- Fix
TextInput.clear()
andTextInput.setNativeProps({text: ''})
to work (057d3ef by @magicien) - Correct fishhook import in RCTReconnectingWebSocket (75a0273)
- Change in RCTImagePickerManager to handle crashes if height/width is nil (82af7c9 by @abhi06276)
- Fix controlled
<TextInput>
on iOS when inputting in Chinese/Japanese (892212b by @mmmulani) - Fixed
<ScrollView>
bug encountered with brownfield apps (fab5fff by @PeteTheHeat) - Fixed missing selection indicator lines on
<PickerIOS>
(e592d6f by @VSchlattinger) - Fix crash in RCTImagePicker on iOS (934c50f by @mmmulani)
- Fix
undefined_arch
error received when building in Xcode 10 beta (e131fff by @futuun) - Add support for connecting to the Packager when running the iOS app on device when using custom Debug configuration (079bf3f)
- Fixed RCTAnimation import for integrating with cocoapods (7525f38 by @LukeDurrant)
- [BREAKING] Removed
ScrollView.propTypes
; use flow or typescript for verifying correct prop usage instead (5b6ff01 by @sahrens)
ReactInstancePackage
is now deprecated; use@link ReactPackage
or@link LazyReactPackage
(b938cd5 by @axe-fb)
Welcome to the June 2018 release of React Native! Over 60 contributors made 821 commits since March - and we are extremely grateful to every single one of you.
As you'll see in a second, this new version has some important breaking changes that required a lot of extra efforts to bring to a stable 0.56. This was the main reason behind skipping April and May from the monthly release cycle, but looking forward we are planning on going back to do a rollout every month.
When upgrading to 0.56, make sure to bump your babel-preset-react-native
package.json
dependency to 5.0.2
or newer (but still as fixed value).
React Native library authors will need to update their libraries to make use of the updated Babel preset as Babel 7 is not backwards compatible.
If you have issues upgrading to Babel 7, please double check the related documentation, in particular the sections related to Package Renames and Scoped Packages.
The babel-bridge
library may be used if you need to use libraries that have not yet upgraded to Babel 7. You may also enforce the Babel 7 dependency via tools like yarn resolutions. Overall, you need to ensure all the @babel/*
deps are fixed at version 7.0.0-beta.47
.
Trailing commas are now allowed.
Any device that can run iOS 8, can upgrade to iOS 9. Developers who support iOS 8 in their apps may continue doing so as this is a Xcode-level setting (IPHONEOS_DEPLOYMENT_TARGET
).
We recommend using Xcode 9.4 as that is what we use to run our tests.
The target API level is left unchanged in this release.
Starting August 2018, new apps submitted to the Play Store will need to target API 26 as a minimum. You can now opt your project in to use API 26 (or newer) as the target. Please let us know about any issues, as we'd like to finalize support for Android API 26 by the time 0.57.0
is released.
Geolocation is disabled by default.
Removes a pitfall that people may run into when releasing an app for Android if the bulk of the testing has been performed on iOS only. Nesting a <View>
within a <Text>
component (e.g. <Text><View /></Text>
) is unsupported on Android, but using this pattern on iOS has not thrown errors in the past. With this release, nesting a <View>
inside a <Text>
will now throw an error on iOS in order to reduce the parity gap between the platforms.
Added Flow types for several components.
We're migrating away from PropTypes and runtime checks and instead relying on Flow. You'll notice many improvements related to Flow in this release.
- Fix project settings warnings on newer Xcode versions, remove unnecessary console logging.
- Modernized
YellowBox
. Sort warnings by recency, group warnings by format string, present stack traces, show status of loading source maps, support inspecting each occurrence of a warning, and bug fixes. - Prettier files!
- Lots of bug fixes.
Heads-up: the Facebook internal team is currently working on a rewrite of some core architecture pieces. This is a work in progress and we do not expect it to be ready for use in open source quite yet, but we felt the need to let you know what those commits mentioning Fabric are about.
- Update
babelHelpers
with Babel 7 support (fbd1bea) FlatList
is now Strict Mode compliant (a90d0e3)- Enable
?.
optional chaining operator plugins (aa6f394) - Support
flexWrap: 'wrap-reverse'
(d69e550) - Add prop type
accessibilityTraits
toText
(654435d) - Add devDependencies support for templates (c4ab03a)
- Add support for springDamping in
SpringInterpolator
(1dde989)
- Add support for build.gradle with CRLF for use with
react-native link
(843cfc3) - add decimal pad to android (5b7a817)
- Add a way to dismiss PopupMenu elements (353c070)
- Implement
Image.defaultSource
(b0fa322) - Support Image resizeMode=repeat (0459e4f)
- Yoga: Add back deprecated
getParent
methods for non-breaking API change (c3c5c3c)
- Run tests using Xcode 9.4 and iOS 11.4 (c55bcd6)
- Add support for Homebrew-installed Node (0964135)
- Add textTransform style support (8621d4b)
- Add docs for Swift usage to
RCTBridgeModule.h
(ca898f4)
- Upgrade React Native to Babel 7 (f8d6b97)
- New projects created using
react-native init
will use Babel 7 (e315ec9) - Restrict
WebView
to only http(s) URLs: (634e7e1, 23f8f7a) - Node 8 is now the minimum required version (c1e6f27)
- Upgrade React to v16.4.1, sync React Renderer to revision ae14317 (72d22e8)
- Update new project template's Flow config to fix
Cannot resolve module X
isse due to removal of@providesModule
(843a433) - Upgrade Flow to v0.75 (3bed272, 8aaf73b, 6264b69)
- Upgrade Flow definitions (f8b4850)
- Upgrade Prettier to v1.13.6 (29fb2a8, 8aaf73b)
- Upgrade Jest to v23.2.0 (536c937, 8aaf73b)
- Upgrade Metro to v0.38 (d081f83)
- Modernized
YellowBox
(d0219a0) - Disallow requiring from invariant/warning (521fb6d)
- Remove native prop type validation (8dc3ba0)
- Add
$FlowFixMe
to invalid prop accesses where Flow wasn't complaining before (f19ee28) - Create Flow props for
Image
(8bac869) - Flow type for
SegmentedControlIOS
(113f009) - Flow type for
ProgressViewIOS
(c87701b) - Flow type for
PickerIOS
(1c66cdc) - Flow type for
Switch
(06052a2) - Flow type for
Slider
(cbe045a) - Flow type for
RefreshControl
(891dfc3) - Flow type for
ListView
(4b1ecb6) - Flow type for
TextInput
(c8bcda8) - Flow type for
TouchableBounce
(8454a36) - Flow type for
TouchableOpacity
(44743c0) - Flow type for
TouchableHighlight
(f0c18dc) - Flow type for
TouchableWithoutFeedback
(0b79d1f) - Flow type for
ScrollView
(b127662) - Flow type for
DatePickerIOS
(97e572e) - Flow type for
KeyboardAvoidingView
(188b118) - Flow type for
ActivityIndicator
(0b71d1d) - Remove
$FlowFixMe
inTouchableBounce
(ffda017) - Remove
$FlowFixMe
inScrollView
(af6e2eb) - Remove
$FlowFixMe
inListView
(af6e2eb) - Remove
$FlowFixMe
inText
(6042592) - Remove
$FlowFixMe
inRTLExample
(206ef54) - Remove
$FlowFixMe
inAppContainer
(a956551) - Remove
$FlowFixMe
inSlider
(1615f9d) StyleSheet
: Support animated values for border dimensions (3e3b10f)- Update
react-devtools-core
andplist
to include security fixes reported bynpm audit
(3a1d949) - Update
Switch
to ES6 Class (970caa4) - Update
Slider
to ES6 Class (5259450) - Update
ActivityIndicator
to ES6 Class (edd7acb) - Update
RefreshControl
to ES6 Class (a35a238) - Update
KeyboardAvoidingView
to ES6 Class (c017dcb) - Update
DatePickerIOS
to ES6 Class (f8c8231) - Update
Text
to ES6 Class (ab92c00) - Replace
context.isInAParentText
w/React.createContext
(e1339bc) - Cleanup
Text
implementation (06c05e7) - Switch
Text
toReact.forwardRef
(e708010) - Switch
View
toReact.forwardRef
(3e534b9) - Update uses of
genMockFunction
andgenMockFn
tofn
in tests (390ded8) - Make
ViewProps
exact (65c336f) - Spread
TVViewProps
intoViewProps
instead of intersection (bc658d3) - Allow trailing commas (1e2de71)
- Use
let
/const
(8f5ebe5) - Refactor
MockNativeMethods
in Jest (5d4c542) - Use app name from
app.json
after ejecting (57774a4) - Suggest
git apply --reject
for failed upgrades (4fbd244) - Moved
TouchHistoryMath
from React to React Native (06085d3) - Refactor
RCTInputAccessoryView
(c136c54) - Don't wrap
ListEmptyComponent
in an extra view (db061ea) - Move
Text
PropTypes to its own file (cd8128b) - Mock
ReactNative.NativeComponent
native methods in Jest (3e9a371) - Tightening types for
View
andVirtualizedList
(5035af8) - Make values optional in
ViewPropTypes
(f1316ca) - propTypes are optional for native components (dbdf43b)
- Rename
Style
toDangerouslyImpreciseStyle
(4895c64) - [BREAKING]
requireNativeComponent
's signature has been simplified to only take extraOptions (820673e, b549e36, 28d3778, 1c90a2b, and 1ab7d49 by @yungsters)
- Public methods of Text (
blur
,focus
,measure
,measureInWindow
,measureLayout
,setNativeProps
) are no longer bound to the text component instance. It is therefore unsafe to pass these methods by reference (i.e: as callbacks) to functions. So, things likesetTimeout(this._txtRef.focus, 1000)
will no longer work. Please instead do:setTimout(() => this._txtRef.focus(), 1000)
.
- [BREAKING] WebViews now can only use https; do not use it for
file://
(634e7e1 by @mmmulani) - iOS 9 is now the minimum required version (f50df4f)
- Update podspecs to target iOS 9 (092103e)
- Xcode 9.4 is now used to run tests (c55bcd6)
- Prevent console logging on iOS 11.3+ within WebSocket (8125be9)
- Expose
RCTFont
size overrides (6611fef)
- Projects are now compiled using Android SDK 26 (065c5b6)
- Use Google Maven repo in new Android projects (6d56a23)
- Upgrade Buck to v2018.03.26.01 (1324e7b)
- Upgrade gradle-plugin to 2.3.3, gradle to 3.5.1, gradle-download-task to 3.4.3 (699e5ee)
- Bump NDK APP_PLATFORM to android-16 (5ae9799)
- Bump glog to 0.3.5 (added libc++ support) (8bd4344)
ReactFragmentActivity
deprecated as it's not necessary when targeting API level 14 and above (8ea8dd6)- Touchables now play a sound on press (722f88c)
- Default
underlineColorAndroid
to transparent (a3a98eb) - Disable
WebView
geolocation by default (23d61b3) - Ensure cookies with illegal characters are not sent to okhttp (04028bf)
- Update app icons to match recent Android releases (94393f8)
- Better error messages for
ReadableNativeMap
(30d06b4) - Update Fresco to v1.9.0, okhttp3 to v3.10.0 (6b07602)
- Add tint color to inline icons (e8e2a6e)
- Fix antialiasing rounded background (7500b3e)
react-native link
will now replace '/' by '_' when linking projects. If you previously linked scoped packages, they will get linked again. (dbd4759)- New project template now uses project-wide properties (5ae80f9)
VirtualizedList
now accounts forListHeaderComponent
length when calculating offset (537731f)- Prevent showing a hidden status bar when opening modals (076b1ce)
- Fix crash when reloading while Perf Monitor is enabled (4fcd997)
- Fixed concurrency issue in remote debugger (e5aa5b7)
- Fix
Modal
+FlatList
scrolling (8799047) - Fix bug in
RCTNetworking
where not all tasks/handlers were being cleared during invalidation (b805172) - Fix keyboard handling with
keyboardShouldPersistTaps: never
(ffe6c11) - Fix Responder Logic in
Text
(e2ce22b) - Fix
VirtualizedSectionList
lint warnings (26a1eba) - Fix
VirtualizedSectionList:ItemWithSeparators
(488a4c7) - Fix
TextInput
's initial layout measurements (c6b4f9f) - Fix
requireNativeComponent
check (1c90a2b) - Fix
TextInput
autocapitalization bug (ff70ecf) - Add missing events to
ViewPropTypes
(41a9403) - Add missing Jest mock in
StatusBarManager
(4a2c560) - Add Flow declaration for Metro module (1853e15)
- Fix type for
ReactNative.NativeComponent
(1/2) (de11ba2) - Fix type for
ReactNative.NativeComponent
(2/2) (7528636) - Move Image PropTypes to new file (6765699)
- Tests: Fix JUnit report location when running Jest (85fc98d)
- Tests: Fix ReactImagePropertyTest SoLoader failures (#19607) (a52d84d)
- Tests: Fix jest snapshot testing on Windows (216bce3)
- Fixes "Cannot resolve module" errors in new
react-native init
projects (27a497d) - Haste hotfix for
react-native-windows
(600747f)
- Fix undefined_arch error in Xcode 10 beta - 3861dbef5b34734283563e28b454b68d3265d21a
- Make
react-native run-ios
command play nicely with multiple Xcode versions (302699a) - Correct fishhook import (ca515e9)
- Fix bug where a Backspace event was emitted when entering characters after clearing a text in
TextInput
by an empty string (1ffb2b6) - Expose
InputAccessoryView
so it can be imported (80fc415) - Fix
InputAccessoryView
safe area comformance (490f22a) - Fix use of C++ syntax in header file (bfcfe79)
- Fix install step when running
run-ios
(0934c17) - Fix
run-ios
not turning on Simulator (9736ddc) - Use correct library reference for Fishhook. This fixes the build for the new Xcode build system, on both Xcode 9 and Xcode 10 (a8b7457)
- Add missing
onChange
event definition toDatePickerIOS
(3b53091) - Fix crash during Archive phase on Xcode 9.3 (344c205)
RNTesterPods
: Add missing folly include (128c934)RNTesterPods
: folly::Optional'shas_value()
tohasValue()
until folly is upgraded (128c934)RNTesterPods
: Fix import forRCTTestAttributes.h
(128c934)RNTesterPods
: Fixconversions.h
to use namespaced includes (128c934)- Fix or mark enum conversions surfaced by
-Wenum-conversion
(b8f30db) - Fix CocoaPods integration without DevSupport subspec (c09d509)
- Update Yoga to handle being in a Xcode framework project (cf036db)
- Fix Blob memory leak (122b379)
- Avoid double reload event when reloading JS (b348aa1)
- Suppress spurious warning about RCTCxxModule (af76473)
- Fix extreme
TextInput
slowness on Android (1b4187f) - Correct draw path dimensions while doing even border, fixes blurred borders (c5ca26a)
- Don't pass additional arguments to
requireNativeComponent
in.android.js
files (a51e8b1) - Prevent
RefreshControl
from getting stuck when a parent is scrolled horizontally (33ffa79) - Prevent crash due to unsupported ellipsize mode (85e33aa)
- Fix okhttp3 response handling in
DevServerHelper
(56d48bd) - Fix
ReactInstanceManager
unmountApplication to supportReactRootView
recycling (4a9b2a7) - Fix
NullPointerException
when emiting event usingUIManagerModule
(291c01f) - Fix link to Android build guide (57e7556)
- Fix Android open source test failures (3e0ebc7)
- Fix view indices with LayoutAnimation (d8fcdb9)
- Fix originalNode memory leak (8102e35)
- Fix
ScrollView
with aTextInput
(2f1421d) - Disable onKeyPRess logic when handler not defined (41975f7)
- fix permission requests on pre-M android (6d27bd1)
- Deprecate
focusTextInput
andblurTextInput
(ce3b7b8) - [BREAKING]
ImageResizeMode
onImage
is no longer exposed; check your usage ofresizeMode
; the same resize modes exist, but pass them as strings instead (870775e by @TheSavior)
- Disallow nesting of
<View>
within<Text>
(e.g.<Text><View /></Text>
) (6a1b416 - Removed deprecated
UIActionSheetDelegate
methods (5863b56)
During the RC testing of this version, a few issues that have been opened don't have yet a finalized solution ( 19827, 19763, 19859, 19955 ). We are aware of them and we hope that by releasing 0.56.0 the surface of developers interacting to find solutions to them will allow for faster resolution and an even better 0.56.1 release. So please check the already opened issues before submitting new ones.
If you are using Windows to develop React Native apps, we suggest you keep an eye on this issue in particular since there have been many reports of issues related to Win 10 and RN 0.56.
Welcome to the March 2018 release of React Native ! Over 81 contributors made 247 commits since February. Thanks for another exciting release.
Here are a few highlights:
- React Native is now using the MIT license
- Android TV device support
- Animated tracking with native driver - check out the silky smooth framerate
- Lots of Flow improvements
- Bugfixes
- Added support for animated tracking to native driver. Now you can use
useNativeDriver
flag with animations that track otherAnimated.Values
(b48f7e5 by @kmagiera) - There's a new UTFSequence module in the library for common Unicode sequences (Emoji!) (54870e0 and 4761d5a by @sahrens)
- Added
contextMenuHidden
property for TextInput (2dd2529 by @amhinson) - Add
testOnly_pressed
to TouchableHighlight for snapshot tests (3756d41 by @sahrens)
- Added support for Android TV devices (b7bb2e5 by @krzysztofciombor)
- Implemented style
letterSpacing
for Text and TextInput (5898817 by @motiz88) - Bundle download progress is now shown d06e143 by @janicduplessis)
- AndroidInfoModule now also returns Android ID (216c8ec by @L33tcodex0r)
- Introducing InputAccessoryView, "a component which enables customization of the keyboard input accessory view" (38197c8, 84ef7bc, and 6d9fe45 by @PeteTheHeat)
base-line
metric exposure for Text and TextInput (51b3529, 0dbe183, and 7630a61 by @shergin)- DatePickerIOS now has
initialDate
prop (446ce49) - Expose version via
RCTVersion.h
'sRCTGetReactNativeVersion()
(30469ed by @LeoNatan) - Allow running multiple simulators simultaneously with
react-native run-ios --simulator ...
(2ad3407 by @koenpunt) - Introduced RCTSurfaceHostingProxyRootView for migration to RCTSurfaceHostingView (34b8876 by @fkgozali)
- New UIManager API allowing intercept/delay mounting process (402ae2f and b90c1cf by @shergin)
- React Native has now adopted the MIT license (1490ab1 and 26684cf by @sophiebits)
- The HelloWorld template now exclude
*.jsbundle
files from Git (2123108 by @aneophyte) react-native-git-upgrade
now shows files merged with conflicts in red (e53a8f7 by @alvinthen)ResolvedAssetSource
type to have all read-only members (4d0ee37 by @sahrens)- Flow types improvements (b6c7e55, b98bf1e, 80c1839, 70a3ece, f734357, a817c64, 3fd82d3, cd8128b, 5035af8, 26734a8, 321ba06, b6b80f6, f1316ca, 2520c64, 214da52, dbdf43b, 49396aa, 4895c64, a3c07c9, 49ffc9f, and c129457 by @TheSavior, @yungsters, and @alex288ms)
- Better enable cross-platform support of WebSocket.js (b9be289 by @rozele)
- Better error handling in the CLI around making directories (d2817f4 by @BridgeAR)
- Verify that the component passed to createAnimatedComponent is not functional (10b642a by @janicduplessis)
- Don't truncate in the middle of an emoji (9c8c597 by @Vince0613)
- Loosen Platform check to allow better code sharing for out-of-tree platforms (84affbd)
- In CLI, fix issue with
isInstalled
check for Android and references to unregister (ec88489 by @rozele)
- tvOS
onPress
magnification animation now works via thetvParallaxProperties
prop object takingpressMagnification
,pressDuration
, andpressDelay
(6c353fd by @JulienKode)
- In TouchableOpacity, trigger animation on
opacity
upon change indisabled
prop (9366ce4 by @maxkomarychev) - Fixed an issue encountered when using
react-native-vector-icons
(a759a44 and 54dc11a by @jeanlauliac and @t4deu)) - Add missing mock for Jest for
removeEventListener
method (59c7b2c by @MoOx) - Fix main size calculation from the aspect ratio (f751c34)
- Fix crash in Subscribable due to uglify-es (b57a78c by @iMagdy)
- Update
node-notifier
dependency to fix memory leak (860fcd4 by @rickhanlonii) - Fix issues with pollParams and link (ca8ce83 by @grabbou)
- DevLoadingView now supports the iPhone X screen shape (47b36d3 by @mrtnrst)
- Added bounds check to prevent ScrollView from scrolling to an offset which is out of bounds of the ScrollView (16c9e5b by @siddhantsoni)
- NetInfo
isConnected
works again (dbafc29 by @alburdette619) - In AlertIOS, fix duplicate var name declaration (6893a26)
- Permit
react-native run-ios --device [id]
by passing port when running on device (f8fee0a by @jozan) - Fixed issue with
run-ios
whereEntry, ":CFBundleIdentifier", Does Not Exist
was being received (5447ca6 by @blackneck) - Fixed problem in Text measurement on iOS (a534672 by @shergin)
- Fix crash when reloading in tvOS (3a3d884 by @dlowder-salesforce)
- Fixed a bug with positioning of nested views inside Text (7d20de4 by @shergin)
- Fix blob response parsing for empty body (093a78d by @janicduplessis)
- Fix tvOS react-native init release build (3002c4e by @dlowder-salesforce
- Fix RedBox from bridge reload due is not re-registering its root view (2e51fa5 by @fkgozali)
- Fix: incorrect line-height calculation (74e54cb by @strindhaug)
- Fix crashes with TextInput introduced in 0.53 (b60a727 by @joshyhargreaves)
- Update ReactAndroid build script to support gradle 2.3.0 (d8bb990)
- Allow "unexpected URL" exception to be caught on Android when using fetch (da84eba by @jcurtis)
- Fix
onLayout
prop for TextInput (8a073c1 by @rozele) - Fix ViewPager when using native navigation (a1295e1 by @ruiaraujo)
- Fix localization crash in DevSettingsActivity (427e464 by @ayc1)
- Fix pinch crash in touch-responsive views (67c3ad4 by @tobycox)
- Fix IllegalStateException thrown in looped timing native animation (ef9d1fb by @kmagiera)
- Workaround android-only js module resolution issue (c20e0f9 by @fkgozali)
- Fix ReadableNativeMap.toHashMap() for nested maps and arrays (8a6ab14 by @esamelson)
- Fix Android Sanity Buck version check (e057322 by @hramos)
- Fixes the connection to Firestore by following whatwg.org's XMLHttpRequest send() method (d52569c by @samsafay)
invertStickyHeaders
can now be set from SectionList or FlatList (3d69b5c by @dannycochran)
- Removed various types (b58e377, ee26d9b, d89517d, 852084a by @TheSavior)
- Deleted
Systrace.swizzleJSON()
(3e141cb by @yungsters)
ReactInstanceManager#registerAdditionalPackages
has been removed; Create UIManager interface and extract common classes in uimanager/common (6b45fb2 by @mdvacca)
Welcome to the February 2018 release of React Native! This release includes work done by the React Native team and the community in January, and there are some big changes here after the holidays. Thanks for 270 commits from 87 contributors, you all are great! Here are a few highlights from the release:
- Long awaited Blob changes: upload, download, fetch locally, and more
- Sticky headers now work on inverted Lists
- Update to the newest React, which deprecated some lifecycle methods and added new ones – expect Yellowbox until React Native is updated
Space-evenly
is now there (sorry for the confusion with 0.52's release notes)- A lot of under-the-covers work on Yoga, iOS's Text and TextInput, and a ton of other areas
- Multiple crash fixes
The changelog is arranged by the customary added, removed, changed, and fixed plus internal; the changes are also organized by platform.
- ✨ Blobs now can be: made from Strings, loaded by File using a FileReader API, uploaded and downloaded via
XMLHttpRequest#fetch
, and fetched on files to a local blob consistently (be56a3e and 854c233 by @satya164 and @fkgozali) - Dynamic node_module dependencies are now supported (b5e19ad by @jeanlauliac)
- Support sticky headers for inverted Lists with
invertStickyHeaders
(ecaca80 by @janicduplessis) space-evenly
is now supported (sorry for the confusion with 0.52 notes) (b1cdb7d by @gedeagas)- Platform plugins can participate in RNConfig,
link
, andunlink
– keep an eye on react-native-window's use of it! (a40bfa7 by @rozele) - Add
minify
flag to react-native bundle command (3f969cb by @tomduncalf)
- Added ScrollView support (6fa039d by @MartinSherburn)
- Bundle download progress is now shown like iOS (675f142 by @janicduplessis)
- Add back ability to customise OkHttp client (22efd95 by @cdlewis)
- ScrollView now supports smooth bi-directional content loading and takes new prop
maintainVisibleContentPosition
(cae7179 and 65184ec by @sahrens) - Allow substituting a default font handler (a9c684a by @mmmulani)
- Add
accessibilityElementsHidden
prop (3128816 by @aputinski) - Add EXTRA_PACKAGER_ARGS extensibility point on
scripts/react-native-xcode.sh
(PR rev 2122140 by @brunolemos with landing assists b8c86b8 and 0d4ff1b)
- Remove internal
utf8
utility - use the utf8 package now instead (431670f by @mathiasbynens)
- Removed outdated assertion in RCTShadowView related to breaking change in Yoga (e3ff3cf by @shergin)
- Fix an issue when swapping to and from the
visible-password
orphone-pad
keyboard types. (164f6b6 by @BrandonWilliamsCS) - Remove redundant config in AndroidManifest.xml (d7a9ca2 by @gengjiawen)
- Delete RCTBatchedBridge (816d417 by @mhorowitz)
- Docs clarifications (7abffc3 by @IgorGanapolsky)
- ⚡️ Text and TextInput have been re-implemented from the ground up for performance, flexibility, and reduced technical debt (2716f53, ef4214a, 0009909, 74963eb, 6c4ef28, ebc9884, d7fa81f, 7d1ec7a, 5264832, 6bb8617, 5dbb3c5, 7e7d00a, 46fd864, 9dfa2e7, 8a882fe, and 0f9fc4b by @shergin and @hovox)
- Image's
resizeMode="center"
is now documented and has an example present (be7037f by @motiz88) - Geolocation API no longer timeouts when
skipPermissionRequests: true
(5c17db8 by @ngandhy) - Rounding pixels is now done with an algorithm from Yoga rather than React Native, reducing debt and improving performance (ceb1d1c and 114c258 by @shergin)
- Numerous refactors around bundle handling and the
DevServerHelper
(644123a, e756251, 6e44356, 1019bda, 06d8f96, f88c9d6, and 108f966 by @davidaurelio)
- Fix JS debugger issues related to CORS (29f8354 by @njbmartin)
- Keep the
.gitignore
d files during thereact-native-git-upgrade
process (7492860 by @ncuillery) - Fix re-render case on SwipeableRow (a580a44)
- Fix display of syntax error messages when HMR is enabled (2b80cdf by @ide)
- Add fixtures to metro blacklist in order to let build succeed (4194bb2 by @t4deu)
- Don't crash when using decimal
Animated.modulo
values withuseNativeDriver: true
(6c38972 by @motiz88) - Don't crash when receiving unknown websocket IDs (1a790f8 by @sunweiyang)
- Dont crash when
NativeModules.UIManager.showPopupMenu
method calls error callback (0c18ec5 by @dryganets) - Maintain cursor position when TextInput's
secureTextEntry
changes (09b43e4 by @jainkuniya) - Race condition fix in Dialogs module (d5e3f08 by @dryganets)
- Fix NPE in Android Switch during measure (7b1915e by @4ndroidev)
- Fix initialScrollIndex (ef596de by @olegbl)
- Fix redbox style (f363dfe by @ayc1)
- Fix crash due to mishandling of UTF-8 in progressive download. (9024f56 by @dryganets)
- Fix crash because ClassCastException fix: getText() returns CharSequence not Spanned (46cc490 by @dryganets)
- Fix and re-enable "view flattening" optimizations (877f1cd by @mdvacca)
- Fix Crash when CameraRoll is getting assets from iCloud and no filename is provided (2ae2436 by @pentarex)
- Fix Xcode Archive task failing if project path contains whitespace (8aa568e by @jevakallio)
react-native link
has been fixed to correctly link iOS and tvOS targets (a63fd37 by @dlowder-salesforce)GLog
fix on case sensitive APFS macOS (2fef1ba by @hovox)- Fixed issue where you cannot launch tvOS app on Apple TV simulator (afd988f)
-
A massive amount of Yoga optimizations, cleanups, refactors, and test fixes (62d0100, 1475fc4, 9daa174, d4517dd, ca91f0e, 34b7ec8, fda861a, 9f7cedb, ac1c8c2, fcf2c7c, 2b27f1a, 210ae5b, 8208858, 7f94bff, bd7bf94, 2fe65b0, 9658d9f, ee5c91c, 64d530b, 400a29e, f75e21f, 528bbac, be8e7c6, d0f7d4d, 4b4959a, fdef378, 831a1bb, 2a22d99, 9f57ded, and ff2658c by @priteshrnandgaonkar, @passy, @ryu2, and others)
-
🚧 Lifecycle methods were renamed to be consistent with React RFC6 – note that there are Yellowbox warnings right now because of this, it's work-in-progress (6f007e8 by @bvaughn)
-
Some autogenerated mystery string files were added (c7846c4, bb6fcea, 8bd00a2, faa9519, f49f793)
-
Improvements to the cli's implementation (2c5fbd7, 752427b, and 619a8c9 by @arcanis, @voideanvalue, and @rozele)
-
Measure touch events from nearest "root view" (a70fdac by @mmmulani)
-
Allow to attach the HMR server to an external http server (8c6b816 by @rafeca)
-
Split folly/Memory out from headers-only targets in Buck (b8e79a7 by @mzlee)
-
Code cleanup of ReactHorizontalScrollView in Android (71ec85f by @mdvacca)
-
Always create a debugger websocket connection when in iOS dev builds (fa334ce by @bnham)
-
Make the React Native HMR client extend from the generic metro HMR client (9a19867 by @rafeca)
-
Better handling exception in loadScript() (3fbf785)
-
Handle invalidation error in RCTObjcExecutor (493f3e8 by @fromcelticpark)
-
Check for nullptr when accessing isInspectable method (70d23e8 by @fromcelticpark)
-
Fixing Prepack model for latest global.nativeExtensions changes. (01a58d1 by @NTillmann)
-
General code cleanup: unused code and configurations (e233646 and e701034 by @bvaughn and others)
-
Add support for finding multiple views with NativeIds using a single listener to Android (f5efc46 by @axe-fb)
-
Changes from Prettier (b815eb5, e758cb7, bf9cabb, and a5af841 by @shergin)
-
Support for inherited events in view managers (2afe7d4 by @shergin)
-
Flow types changes (3fc33bb, e485cde, 83ed9d1, 52ffa5d, d37cdd9, 6e7fb01, d99ba70, bcfbdf4, and a1c479f by @alexeylang, @sahrens, @yungsters, and @zjj010104)
-
Give IInspector a virtual destructor for correct InspectorImpl destruction (2a3c37f by @toulouse)
-
Migrated
SourceCode
andDeviceInfoModule
out of Native Modules (47fe523 and 429fcc8) -
Jest config change as part of bringing back support for the
assetPlugin
option in Metro (af6450c by @ide) -
Nested virtualized lists should receive recordInteration events (ae2d5b1)
-
xplat/js: asyncRequire: redirect async modules to control modules (5e11b88 by @jeanlauliac)
-
More progress towards split bundle support (1a1a956 and 9e34cbd by @fromcelticpark)
-
Implement bundle sync status (88980f2)
-
Various improvements to RCTSurface and RCTShadowView (7d9e902, 06ebaf2, 6882132, and 193a2bd by @shergin)
-
Progress towards experimental ReactFabric and FabricUIManager (b1e5c01, fa0ac92, 94dac23 by @fkgozali)
-
Refactored bridge ReadableNativeMap and ReadableNativeArray to add centralized accesses (7891805, 28be33a, and 5649aed)
-
Removed unused core from Image.android.js (ce3146a by @shergin)
-
Capture StackOverflowExceptions triggered when drawing a ReactViewGroup or ReactRootView and log more debugging information for it (1aac962 and 4d3519c by @mdvacca)
-
babel-preset-react-native
: only require plugins once (df6c48c by @davidaurelio) -
Report module id as string and as double, in case of invalid values are passed to nativeRequire (8f358a2 by @fromcelticpark)
-
More work moving build configurations to Skylark (d3db764, 869866c, a8c95d2, and 79a63d0 by @mzlee, @ttsugriy, and others)
-
Remove unused
packagerInstance
option and rename it toserver
(bbbc18c) -
The blog has moved to react-native-website (e16d673 by @hramos)
-
Removed broken link for 'Getting Help' in the README (b3a306a by @rickydam)
-
Changed to use boost-for-react-native cocoapod, which speeds up
pod install
a ton; this was in 0.53 originally but had to be re-added (d40db3a by @CFKevinRef) -
Remove fbobjc's RN copy (af0c863)
-
Measure time to create ReactInstanceManager (6224ef5 by @alexeylang)
-
Upgrade flow to v0.65.0 (7aba456 and 298f3bb by @avikchaudhuri and @mroch)
-
Upgrade ESLint to v4.17.0 (plus update related deps) (bba19e8 by @zertosh)
-
Upgrade React to v16.3.0-alpha.1 (03d7b2a and 5e80d95 by @grabbou and @hramos)
-
Synced React and ReactFabric render (c7ed03a, 1382975, and d676746 by @bvaughn)
-
Upgrade metro to v0.26.0 (9e6f3b8, ce50f25, e9b83e6, 2fe7483, 0f96ebd, 0de470e, e8893a0, and f4fde9d by @rafeca and @grabbou)
-
GitHub bot commands have been disabled in the short term (b973fe4 by @hramos)
-
Various CI configuration changes (17bd6c8, 51b6749, a2f3ba8, 2ef9b7f, 40b1792, 613afba, da8bec9, fa11fae, f50af7f, 9227ba7, 365a4d4, b58d848, c8e98bb, f5975a9, and 605a6e4 by @hramos, @grabbou, and @dryganets)
-
Trim docs that are already present in the open source docs site (28d60b6 by @hramos)
-
Fix obsolete instructions about editing docs (2f46712 by @ExplodingCabbage)
-
Fix links to beginner friendly issues (c355a34 by @hotchemi)
-
Don't run the Danger CI tool through Flow (1ea3065 by @hramos)
-
Namespace custom ESLint rules through eslint-plugin-lint (488b682 by @zertosh)
-
... and now we're at 0.54 🎉 (67e67ec, 21dd3dd, 49e35bd, 829f675, and 294d95a by @grabbou and @hramos)
Welcome to the January 2018 release of React Native. The CLI now supports --port
for both platforms, a few components were made to support consistent props across both platforms, and various fixes were made. There was a lot of under-the-cover work done with more test improvements and dependency updates. 118 commits were made by 43 contributors 🎉.
react-native run-ios
now supports the--port
argument for metro (33d710e)
- On Android, ScrollView now takes
snapToInterval
like iOS (ddd65f1 and b2848a5 ) - On Android, TextInput now takes
onKeyPress
like iOS (c9ff0bc by @joshyhargreaves)
- ⬆️ Metro to v0.24.2 (2e008bc and 0b5e8b4 by @rafeca)
- ⬆️ Flow to v0.63 (6b95c4f by @gabelevi)
- ⬆️ Danger to v2.0 (b750e3b by @hramos)
- ⬆️ Jest to v22.0.0 (4803419 by @mjesun)
- 💄 Bundler is now called Metro Bundler in the terminal (654d759 by @edcs)
- 📝 Update getting started url on Android CLI (6661633)
- 🐳 Dockerfile uses newest Android SDK, Buck, and new Docker tags have been pushed (4fbfbe6 and c547f78 by @hramos)
- 📝 Update repo docs to use HTTPS (33a2e53 by @him2him2)
- 🎨 Make ScrollResponder follow code style (45e6fcd by @TheSavior)
- VirtualizedList now requires a windowSize greater than 0 (3559e42)
- react-devtools works with emulator and real devices now without needing to tweak the devServer value (fa574c6 by @jhen0409)
- 📝 Clarify use of Flow props types in react-native-cli's template project (9b147a5 by @hramos)
- 📝 Add docs for
isInspectable
(59c7967 by @bnham) - ✅ More Flow improvements (Text, SectionList, and others) (f71f4e7, 632f120, and a8391bd by @yungsters, @samwgoldman, and others)
- Various code cleanup to satisfy linting errors and standards (b0319f3, dd46117, and 7f58189 by @ayc1, @grabbou, and @ide)
- 🔥⚡️ iOS UI Manager cleanup and optimizations (7d1deda, 0ae4c47, 2679f3e,and d9e5b31 by @shergin)
- If the inspector tries to handle a wrapped event but there is no connection, log a warning rather than a Redbox (30da262 by @bnham)
- Various under-the-covers changes around the bridge, RCTShadowView, RCTSurface, and a few others (c3139d7, 2789ba0, b8e60a3, 099b280, b263560, 19a9c5e, d3b41e0, b2a2519, 870bc48, 176a578, c491b22, c756122, andc01a171 by @shergin)
- Changed to use boost-for-react-native cocoapod, which speeds up
pod install
a ton (cf19833 by @CFKevinRef)
- Include scroll momentum info when there are scroll events from Android (c49d249 by @wwalser)
- Yoga's mkfile for Android now uses wildcard instead of manual file addition (d89901f by @priteshrnandgaonkar)
- TextInput no longer has the
autoGrow
prop, since this is platform-default behavior now (dabb78b by @shergin)
- Do not set
minify=true
when calculating the list of dependencies for the CLI (4a1bb8f by @rafeca) - 👷 Update CODEOWNERS now that the docs are in a separate repository (85ff264 by @hramos)
- Fixed a broken link in react-native-git-upgrade's readme (bbedf2d by @Taym95)
- 🤡 Do not use Node 8.x specific Stream.final for FS mocks (4216cde by @hramos)
- Fix virtualized cell keys for list headers and footers (a010a0c)
- Fix warnings of casting and null pointer handling in Yoga (a8d4666 by @priteshrnandgaonkar)
- Fix broken buck failures on master (4e76701 by @hramos)
- RefreshControl appears correctly when expected on initial render of a FlatList again (9b877d6 by @vonovak)
- Fixed JS debugger CORS issue (df8da3b by @njbmartin)
- Fix position of dev loading view on Android API < 20 (7ff6657 by @kmagiera)
- Fix Modal not disappearing when navigating from inside a Modal to another activity (e5c2a66
- Fix regression introduced where layout wouldn't occur in some situations (46be5bf by @shergin)
- Fixed double initial prop applying for newly created views (0ec1017 by @shergin)
- tvOS build now works again (3bd8986 by @dlowder-salesforce)
Below is a list of the remaining, low-level changes that made it into this release of React Native.
- Remove "prepareReact" call from the bridge (80f9e1f and 56a42e5 by @fromcelticpark)
- Add explicit componentControllerClass to CKComponent for RCTSurface (ab97270)
- Changes to RCTShadowView to increase RCTSurface performance (f96f9c5 by @shergin)
- Designated methods to control dirty propagation (af226ef by @shergin)
- Add missing tvOS header (49cbca7 by @grabbou)
- On Android, seperate logic to initialize JS from starting the app (4996b9a by @axe-fb)
- ♻️ JS linting was cleaned up: removed unused libs, strengthened the rules, removed unneeded rules, prevent disabled tests, and more (2815ada, 183c316, 9c67e74, 79902f9, 9a36872, 67a3c42, b826596, a1a0a69, and 11a495c by @TheSavior)
- 👷 Separate JS lint and flow checks from tests (5ea5683 by @hramos)
- 👷 Fix Buck in build config to enable CI (796122d, 7c3a61f, 82b123e by @grabbou)
- ♻️ Various refactoring within the YGNode implementation (28968e2, 0a9e652, 6627d77, and d85da86, a163f70 by @priteshrnandgaonkar)
- Fix ReactLegacy and delete RCTViewControllerProtocol (a0ff8c7 by @javache)
- Define internal FB macro for OSS builds; remove some unused definitions (077c3ab and (a6a66c5 by @ttsugriy)
- RNTester: Relax Bridge Release Check (e3c6f38 by @yungsters)
- Remove embeddedBundleURL from the asset resolver (489b98b)
- Do not set FB_ASSERTION_ENABLED (4cdbb77 by @priteshrnandgaonkar)
- JSBigString to MAP_PRIVATE not MAP_SHARED (f9f40cd)
- Fixed black ARTSurfaceView (5c8481e by @shergin)
- Kill orphaned marker end in JSCExecutor (6ad1f09 by @michalgr)
- Make YGNode as c++ struct with properties exposed through accessors (f1055bc by @priteshrnandgaonkar)
- 🔖 ...and now we're at 0.53.0-rc.0 🎁 (0b99657 by @grabbou)
0.52.0 - 2018-01-07
This changelog has been prepared by Ryan Turner (@turnrye) - thank you for your time and making such a detailed changelog 🔥🔥
This release had a lot of work around the bundler and packager, a ton of bugfixes, and updates to many of React Native's dependencies. Lots of under-the-hood work was done as well to improve the layout engine. Happy new year!
If you would like to help us with the next release changelog, please contact @grabbou
- Prettier has a config and an npm script; try it out with
npm run prettier
(1645912 by @janicduplessis) - Debug JS in Nuclide is now an option in the dev menu 🐜 (7c7108a and de424cc)
- Introducing PlatformOS – it looks a lot like Platform, but with a simplified API (5ee27ff by @brishin)
- New experimental RCTSurface: measure and layout a UI in a thread-safe and synchronous manner (be6976d, 7df58e2, e75bd87, aa83b5a, 081f7d1, da17b23, e9e0cd7, 43b2509, ba60751, d71d28f, 4d37cf0, and d021dd2 by @maicki and @shergin)
- Experimental SwipeableRow's datasource now has a
getLastRowID
method (d79e245) - React Native monthly #5 was added (3c5a55d by @tenodi)
- DatePickerIOS now takes locale 🌍 (fd9c361 by @RobertPaul01)
- CameraRoll can now deletePhotos 📸 (554e873 by @fxfactorial)
- There's now an API to specify a different directory for iOS image assets (8f9b291)
- Support for custom accessibility actions on iOS (36ad813 by @ericdavmsft)
- Ignore YellowBox warnings with
YellowBox.ignoreWarnings([...])
rather thanconsole.ignoredYellowBox = [...]
(26038f5 by @wli)
- Metro-bundler is now metro, and it's v0.24.1; there were some performance increases at the cost of a few breaking changes; improved tests of the bundler too (0bbd9f0, a2fd3fc, 503b452, 654fed4, 0091496, aba148f, 3d5dc87, 48019a0, ecec431, f4d627c, f871d25, a7b231a, 830b431, 29dafa1, 7a5d5a4, 4cd685a, d326c86, 231c7a0, 7d969a0, ae51730, f587f8d, fbf0aed, e9393f6, and 968c88d by @cpojer, @hramos, @jeanlauliac, and @rafeca )
- React is now v16.2.0, and it took react-test-renderer along with it; now with more fragments! 🎉 (c7f3707 and cd938d7 by @bvaughn)
- Jest is now v21.3.0-beta.13 (16bbd90 and ec2ea58 by @mjesun)
- Flow is now v0.61.0, and there were a ton of Flow fixes/coverage improvements made (914ae93, eb0d647, c8e72bb, 2d4bedb, e0202e4, 2be3ae1, 22a1419, 6ae0b34, 76a2ca4, 3259353, e6c1fb7, 61d046b, 820cfa1, 240039c, 343c5a9, 5f8d8e9, and da04796 by @Ashoat, @calebmer, @cdlewis, @deecewan, @grabbou, @jamesisaac, @mroch, @nmn, @nmote, @sahrens, @samwgoldman, @TheSavior, and others)
- react-devtools-core is now v3.0.0 (a7d46ea by @rsnara)
- Split out docs to their own repo (and a few formatting fixes along the journey) 👋 (2d86618, 64d80b1, 3362da4, 75123c6, and 79e24ed by @hramos).
- TouchableHighlight now has a default delayPressOut value of 100; it was also refactored a bit for style (ee8a7b4 by @sahrens)
- When in a dev build, more robustly validate arguments for native methods (ea2e2c5 by @mhorowitz)
- On integration tests, report all errors (3bcb912 by @sahrens)
- Yoga has less technical debt, thanks to replacing YGNodeList with vectors (b08a912 by @priteshrnandgaonkar)
- Yoga is now cpp, compiled as c++1y (d7ab949 by @priteshrnandgaonkar)
- Bundle segments are handled better and used more (6812789, a47431e, 963c61d, b9f21dc, f125818, and 1988ba1 by @fromcelticpark and @jeanlauliac)
- packager-worker-for-buck has better tests (7fd5aa8 by @jeanlauliac)
- RCTUIManager has less technical debt (71b498b, 60dc9be, and 21714fe by @shergin)
- Numerous bridge changes, especially around URL resolution (e7bd0f0, 260e6d2, 4894ac4, b983de9, b0193b0, ae5ef65, and 1d6ce23 by @fromcelticpark and others)
- Various cleanup and refactoring (0537763, 0984f29, 6c70975, d950dc6, 70c3590, cfa2bbf, and 850efa8 by @bnham, @priteshrnandgaonkar, and others)
- Jest preprocessing now uses the AST from metro (2ae255a and d5b5951 by @rafeca)
renderApplication()
now supports async initial render (1b22d49 by @bvaughn)- Welcome @lwinkyawmyat to the React Native GitHub Issue Task Force (4ebe76d by @lwinkyawmyat)
- Native components on Android register lazily rather than via ViewManager (1b71e03)
- Android debug overlays (like RedBox, dev menu, loading) are no longer are system overlays; they're now part of the currentActivity (d19afc7 by @kmagiera)
- Fix
backgroundColor
on TouchableHighlight (5a1171e by @sahrens) - Various corrections in messages, comments, and docblocks (58c3bc4, 354e1cb, 58edf02, b9e7006, d2f0abd, 94cd9f5, 8547b7e, 44c1649, c91d872, 85503a0, and 5b83dbe by @behrends, @bvaughn, @charpeni, @dsandmark, @gusgard, @nkabrown, @petterh, @solon, @swashcap, and others)
- Various dev doc and project doc fixes for correctness and completeness (92c0980, 3c9092a, e906525, 6082856, c49b97c, 45ed142, cb6ec7c, 9ec9567, e5a4ea9, c544c0d, 33d5e5b, 95dac8d, 6e1db1f, e11d496, 6da8979, 0ff5760, 1ee64cc, 3aa3856, 6b26971, and de3976a by @adrianomelo, @blargity, @charpeni, @garlic-rice-with-butter, @gwmccull, @harikrishnanp, @hramos, @johnthewilson, @jsdario, @kelset, @patrickkempff, @ryanml, @tiagomoraismorgado88, @timwangdev, and others)
- Stop
RCTRefreshControl
from jumping around (2e1707d by @sophiebits) - Fix a race condition in the animation module (515eb0e by @mhorowitz)
- Fix Windows local-cli's to not wrongfully identify as globally installed (ca10604 by @sballew)
- Fix Jest mocks for NetInfo, Dimensions, and ScrollView modules (7fb3a92, 11a2a35, and 0c8a3e4 by @alvaromb, @timwangdev, and @uk-ar)
- packager-worker-for-buck:
transformCommand
: add missing test (73a01be by @jeanlauliac) - Fixed issue where CLI wasn't following the config value for postMinifyProcess
when its running with
dev=false
(6d92046 by @rafeca) - Fix asset resolver url handling (28d5d6b by @fkgozali)
- Fix crash when destroying catalyst (f101566)
- You can now
justifyContent
while you'reminWidth
ing andmarginLeft
ing; before the justification wasn't honored (f5beceb by @woehrl01) marginLeft: auto
andalignItem: stretch
now play nicely together; before the width and height ended up incorrect (5f99b1a by @woehrl01)- Fix assertion preventing YGNodeLayoutGet* with YGEdgeEnd (a383b8c by @justjake)
- Fix shrinking in non-strech alignments (1d62848 by @woehrl01)
- Correctly calculate min/max percentage constraints (4fdaf2d by @woehrl01)
- When running
react-native-git-upgrade
, don't execute git's hooks (0182086 by @adrienthiery) - When running
react-native-git-upgrade
and failing with a signal, return that to the terminal (b9a5862 by @mateusz-) - In KeyboardAvoidingView, don't mistakenly try to layout when a hardware keyboard changes (ad4450a by @koenpunt)
- Don't endlessly collect websockets when not connected to the packager (dev memory leak) (1e1e491 by @mmmulani)
- Fixed a bug in the sample project random
selection
prop that made it not-so-random (766f020 by @rozele)
- Explicitly
#define isnan __builtin_isnan
for Android clang-5 to mimic gcc's default behavior (f8fe6b0) - Correctly update NetInfo on Android even if connection types change while the app is in the background (e6f542d by @berickson1)
- Direction-aware borders now work with Android APIs >= 17 (7170543 by @rsnara)
- Don't throw BadTokenException and IllegalArgmentException when showing or dismissing Modal on Android (c465599)
- Fix Android crash when blurRadius is between 0 and 1 (dc01eff by @jamesreggio)
- Fix
borderRadius
with Android API level < 18 (5aa1fb3 and ca7fe72 by @rsnara) - Make Android
lineHeight
behavior match iOS's 📏 (3f1b021) - Fixed autoscroll to cursor on Android TextInput (0bef872 by @shergin)
- Fix logging unpacking time on Android when it happens concurrently with eager unpacking (028b64b by @alexeylang)
- Prevent an Android crash when TextInput has
selectionColor
defined but there is no drawable cursor (1e18d90 by @gpeal)
- Don't have Xcode warnings for YGDefaultLog in newly created projects (72e762d by @woehrl01)
- iOS RCTEventEmitter uses a
double
for count, not NSInteger (eaa8499) - Fix
isNuclideDebuggingAvailable
on iOS (59c3e33) - iOS ScrollView is now rendered correctly with RefreshControl (75d62bf by @vonovak)
- Fix a crash when keyboard is visible and bridge reload happens on iOS (d9c6585 by @fromcelticpark)
- RedBox now appears beneath the status bar on iOS (33cefc1 by @adamjernst)
- Fractional border widths on iOS are now the right size, honoring insets (15179f1 by @Nikita2k)
- Implement
requiresMainQueueSetup
in RCTTVNavigationEventEmitter to satisfy Xcode warning (ee3532b by @charpeni) - Support the iPhone X in the sample project's header (ad4b124 by @vincentriemer)
testID
works on TabBarItem on iOS (e19d9de)- On iOS, don't error on the first live-reload of large codebases because of too little wait time (b6f1a60 by @lelandrichardson)
- Prevent iOS crash on receiving bad unicode in XMLHTTPRequest (1c04cee by @cdlewis)
- Define
pod_target_xcconfig
for PrivateDatabase (38b96cd by @ide) - Fixed podspec include/excludes around tvOS (ba1d7e9 by @yygene)
- Don't spam the logs for iOS when receiving
ECONNREFUSED
on connecting to packager (b1701cc and ff3dc2e by @adamjernst) - Don't crash Systrace when debugging JS remotely on iOS (e8eec24 by @alexeylang)
- Removing
reactBridgeDidFinishTransaction
from RCTScrollView (a255204 by @shergin) - Removing inherited background color optimization from RCTText to reduce code complexity – please give feedback if you find performance differences! (8c8944c by @shergin)
Below is a list of the remaining, low-level changes that made it into this release of React Native.
- Foundational work for a new justifyContent value space-evenly (1050e0b by @woehrl01)
- Add Systrace-based telemetry to Hermes GC (05e862d)
- Unify Systrace native hook argument passing (52e3ae9 by @amnn)
- Use different symbols for SystraceSection depending on
WITH_FBYSTRACE
(03956c4) - Don't set global.performance to undefined if it was initialized already (dfebcb7 by @alexeylang)
- Autofixes for migrating to Buck's source-only ABI feature (801cbdb by @jkeljo)
- Add remote API to uninstall the global error handler in RN (1d16923)
- Add RCTLibraryPathForURL in RCTUtil (2fecbf6)
- Fix sections that come from React Fiber (1f40c95 by @alexeylang)
- Fix boolean conversion in sync RN method calls. (dd888d3)
- Fix
embeddedBundleURL
update situation (d1fc8ef) - Remove
android_react_native_perf.use_separate_ui_bg_thread
experiment. (4f886a2) - ScrollView related files were moved to dedicated folder (098a63a by @shergin)
- move page registration logic in to jsinspector (bef7967 by @bnham)
- Type global hooks as function pointers (eca51eb by @johnislarry)
std::string
toconst char*
(b952365 by @johnislarry)- Allow extending props supported by native animations (71751e9 by @andrewimm)
- Meyers singleton jsc error extractor (434f432 by @johnislarry)
- Do not overwrite the same text in TextInput (29f3f55)
- Renaming uiManagerWillFlushUIBlocks -> uiManagerWillPerformMounting (0a8721c by @shergin)
- Skylarkify flags macros. (ed2bfcb by @ttsugriy)
- Skylarkify
config_utils_defs
macros. (88f6f69 by @ttsugriy) - Round size geometry for Button and RichText components. (4034feb by @iaroslav-pavlov
- Temporarily patched Map/Set non-extensible check into RN dev renderer (a99f0d6 by @bvaughn)
- Run buildifier over all BUCK files (d674d48 by @zertosh)
- Pass
scriptURL
to RCTTestRunner (266ab7a) - Make RCTNativeModule::invokeInner explicitely return
folly::none
in case of error (0ac5a52 by @fromcelticpark) - Make RCTPackagerConnection a singleton (9180d4e by @adamjernst)
- Register split segment paths with RAMBundleRegistry (cff0d8e by @fromcelticpark)
- check if listener is still in the set before calling
onHostResume
(ad89ea7) - export SeparatorsObj type for re-use in ListItems etc. (c6fe101 by @sahrens)
- Do not mark node as dirty if, new and old values are undefined (41da6e3 by @woehrl01)
- Remove RAMBundleRegistry subclasses (6ecae73 by @fromcelticpark)
- Fix
minimumViewTime
in ViewabilityHelper (d19d137)