react-native v0.59.0 Release Notes
-
๐ 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.
โ Added
- โ Add a Metro configuration to the template with inline require/import options; read more about it in the blog post (ae11993d0f by @cpojer)
Android specific
- Text and TextInput now has prop maxFontSizeMultiplier (4936d284df by @rigdern)
- TextInput now has prop autoComplete prop (f15145639d)
- CameraRoll's
getPhotos
now supportsassetType: "All"
to let users pick from video and photos simultaneously (54534e79d7 by @kesha-antonov) - Text and TextInput now support
textAlign:justify
for android O+ (api level >=26) (d2153fc58d by sunnylqm)
iOS specific
- TextInput now has prop
rejectResponderTermination
to enable TextInputs inside Swipeables to function properly (11df0eae5f by @cmcewen) - ActionSheetIOS has a new prop
destructiveButtonIndexes
for anArray<number>
of destructive indexes (67e7f16944 by @sdg9) - โ Add
isEventFromThisApp
toKeyboardEvent
notifications to disambiguate keyboard events when apps are running side-by-side (05f35c296d by @nossbigg) - ๐ Allow changing the project path in
react-native-xcode.sh
using env varPROJECT_ROOT
(9ccde378b6 by @janicduplessis)
๐ Changed
React
is now atv16.8.3
(ccefc700d0 and (2af13b4477 by @cpojer and @hramos)Flow
dependency is now atv0.92.0
(5ee738659b by @pakoito)@react-native-community/cli
dependency is atv1.2.1
(a252aee2ea and 5e1504b0fc by @grabbou)- Enhance Flow types definitions for ViewPropTypes (7ff9456f2e by @danibonilha)
Android specific
- Clarify error message to direct people to
react-native start
rather thanreact-native bundle
(46aaa02274 by @sunnylqm) - ๐ฅ BREAKING - removed
OkHttpClientProvider.replaceOkHttpClient
method; please useOkHttpClientProvider.setOkHttpClientFactory
from 0.54+ (7cbdd7b6ac 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 (c493cfe708 by @dulmandakh) - โ Add nullable annotations to
ReadableMap
,WritableMap
,ReadableArray
,Writable
,ReactPackage
, and native module interfaces; this may impact Kotlin usage (b640b6faf7, c93cbdf1b2, 7b33d6b0b9, and 84f40da990 by @dulmandakh) Soloader
is now atv0.6.0
(07d1075f37 by @dulmandakh)- ๐ Android Support Library is now at
v28.0.0
(5bbed43854 by @dulmandakh) targetSdkVersion
is now atv28
(57f444bd8a by @dulmandakh)- ๐ Android Plugin is now at
v3.3.1
(da5b5d2fa1 by @dulmandakh) - ๐ Enable Java 8 support (38eb2a70af by @dulmandakh)
- โ Suppress misleading missing permission warnings (d53dbb0dfb by @dulmandakh)
- โ Add back
buildToolsVersion
to build.gradle (cf52ab561d by @dulmandakh) - TimePickerAndroid has better Flow types definitions (2ed1bb2e01 by @yushimatenjin)
- โก๏ธ
ReactActivity
,ReactSlider
,ReactTextView
, andReactPicker
extendsAppCompatActivity
; updates toTimePickerDialogModule
andDatePickerDialogModule
as well (dda2b82a0a, 3b9604feda, ba0c3ffd5b, 833429dd63, adc1410572, c6c5a173bc, and be361d0fc1 by @dulmandakh) - ๐ Fix lint error/warnings that cause older Android crashes (d2fc19f4aa by @dulmandakh)
- The error message on getting Android drawable folder suffix now gives more information (a159a33c02 by @BrunoVillanova)
SYSTEM_ALERT_WINDOW
permissions available only in debug builds (84a2fb0a4a by @dulmandakh)- โ Add talkback navigation support for links and header (b9d3743cda by @yangweigbh)
- FlatList has
removeClippedSubviews
default totrue
on Android (1a499f43b2 by @fred2028)
iOS specific
- ๐ Moved iOS build cache directory from
~/.rncache
to~/Library/Caches/com.facebook.ReactNativeBuild
(1024dc251e by @sryze) - Keyboard API Event flow types have been improved (7ee13cc84c by @nossbigg)
- Expose AsyncLocalStorage get/set methods to native code (7b8235a95a by @ejmartin504)
- Clear RCTBridge launchOptions when bridge is reloaded (19d04a312b by @venik)
๐ Deprecated
๐ 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 (4ac65f5413 by @FonDorn)
- ๐ Deprecated ViewPagerAndroid as it has now been moved to react-native-community/viewpager (77300ca91c by @ferrannp)
- ๐ Deprecated AsyncStorage as it has now been moved to react-native-community/asyncstorage (ffe37487b2 by @Krizzu)
- ๐ Deprecated Slider as it has now been moved to react-native-community/slider (bf888a7582 by @michalchudziak)
- ๐ Deprecated NetInfo as it has now been moved to react-native-community/netinfo (d9c0dfe353 by @matt-oakes)
- ๐ Deprecated ImageStore and directed users to
expo-file-system
andreact-native-fs
(62599fa8ff by @EvanBacon)
iOS specific
- ๐ Replace deprecated
stringByReplacingPercentEscapesUsingEncoding:
withstringByAddingPercentEncodingWithAllowedCharacters:
(61ca119650 by @pvinis)
โ Removed
- โฌ๏ธ
react-native-git-upgrade
is now officially dead; usereact-native upgrade
instead (which uses rn-diff-purge under the covers) (a6bdacb257 by @cpojer)
iOS specific
- Remove the previously deprecated TabBarIOS (02697291ff by @axe-fb)
- AlertIOS is now replaced with Alert (e2bd7db732 by @wellmonge)
๐ Fixed
- KeyboardAvoidingView now shows the correct height after the keyboard is toggled (745484c892 by @shauns)
- โ Adds fixes for react-native-windows UWP (dfcbf9729f by @rozele)
- The
Map
andSet
polyfills no longer reject non-extensible object keys; also fix hash collision scenario (90850cace9 by @benjamn) - ๐ Corrected StyleSheet's transformation perspective to match iOS's behavior, regardless of screen density (4c10f9321c by @syaau)
- ๐ Fix
yarn test
in new projects (5218932b13 by @Esemesek) - ๐ Fix issue with
getInspectorDataForViewTag
that caused red screen when toggling inspector (46f3285a3f by @TranLuongTuanAnh) - ๐ Fix
displayName
forImage
; this will make tests no longer mistake it asComponent
(4989123f8c by @linnett) - Fix regression of VirtualizedList jumpy header (e4fd9babe0 by @danilobuerger)
- Set
wait_for_recheck=true
to work around crash in Flow (ffc9908bef by @gabelevi) - Fix flow typing of Text (10c8352141 by @sahrens)
- ๐ Fix
jest
andjest-junit
to be only development dependencies (c7b57f1986 by @vovkasm) - Fix layout issue with SwipeableQuickActionButton (ad52f52624 by @varungupta85)
Android specific
- ๐ Fix textTransform when used with other text styles on Android (#22670) (3a33e75183 by @janicduplessis)
- ๐ Fix warnings related to updating to gradle 4.10.1 or higher (5be50d4820 by @misaku)
- ๐ Fix issue with use of Android API 28 by adding security config for metro access (5747094532, 19492b730b, 3b0b7ce8c3, and 84572c4051 by @Salakar and @dulmandakh)
- Fix Inverted Horizontal ScrollView (32cb9ec49c by @dmainas)
- Fix crash on CheckBox on older Android versions (58437cd10a by @vonovak)
- Fix undefined error description in Image
onError
callback (7795a672d3 by @Jyrno42) - ๐ Fix Android crash on animating with
useNativeDriver
(e405e84fc3 by @scisci) - ๐ Fix dev settings menu not appearing for certain codebases due to namespace conflicts (9968d0c203 by @khaled-cliqz)
- Fix exception occurring while fading a TextView (f83281e2ce by @mdvacca)
- Fix StatusBar overwriting previously set
SystemUiVisibility
flags (8afa0378cd by @rogerkerse) - Prevent
fetch()
POST requests from appendingcharset=utf-8
toContent-Type
header (4a807761a4 and 0d5aebbd9a by @nhunzaker) - Fix issue with Location that led to exceptions in two cases (f32dc63546 by @mikelambert)
iOS specific
- Fix TextInput mistakenly capitalizing I's after emojiis (f307ac7c5e by @dchersey)
- Fix TextView's
setAttributedText
for CJK languages on single-line text fields (e38be82dfa by @mandrigin) - ๐ Fix RCTImageLoader multi thread crash (5ed31ce524)
- Fix removing keys of large values from AsyncStorage (27b4d21564 by @esprehn)
- ๐ Fix overscroll behavior on virtualized lists; behavior is now consistent (4d5f85ed42)
- Fix Alert to not block input focus and blur (e4364faa3c by @zhongwuzw)
- ๐ Fix broken JSIexecutor search path (2aa2401766 by @amccarri)
- ๐ Fix potential linker issues when using Xcode project (9f72e6a5d0 by @tyrone-sudeium)
- ๐ Fix crash when
scrollEnabled
used in singleline textinput (9ff43abe65 by @zhongwuzw) - ๐ Fix crash in gif image usage (d0cd3cae13 by @zhongwuzw)
- Fix geolocation to not constantly reset accuracy to default of 100 meters (bbcb97a29a by @omnikron)
- ๐ Fix iOS build issue related to missing
DoubleConversion
andglog
tocxxreact
,jsi
andjsiexecutor
subspecs inReact.podspec
file (00392ac46b by @alexruperez) - ๐ Fix "'folly/folly-config.h' file not found" build error when using React via CocoaPods (5560a47c1d by @Salakar)
- ๐ Fix image cache to follow MDN strategy (fb8ba3fe95 and fb8ba3fe95 by @zhongwuzw)
- ๐ Fix crash due to IllegalArgumentException when creating CookieManage (cda8171af3 by @mdvacca)
- ๐ Fix cursor placement after toggling
secureTextEntry
cursor spacing (8ce3c1b43e by @ericlewis)