React Native v0.19.0 released

v0.19.0 on GitHub (npm)


New features

  • Added scrollTo method to ListView – 33e05a1
  • Add followUserLocation prop to focus on user's location – 3d0ff69
  • Add option to throw/not throw when module can't resolve – 6579b70
  • Add support for promise rejection tracking – b064094
  • Get response url from XMLHttpRequest – b659d7f
  • Add ScrollResponder#scrollResponderZoomTo animated second argument – 963f26c
  • Add Navigator#configureScene, routeStack as second argument – 1abd12b
  • Add StyleSheet.hairlineWidth, useful for drawing thin lines in a layout – cd89016
  • Add onLoading* props for WebView – 274a3e0
  • Add XHR timeout for Android and IOS – 1303e6d

Bug fixes

  • Fix lint warnings in the resolver – 0cb63bb
  • Return non-zero exit code from wrong-react-native – ec76271
  • Pipe transforms errors through transformation pipelines – 5a4ee0b
  • Fix packager cache errors – f421d2b
  • Fix background warning in TouchableNativeFeedback – 28c0240
  • Docs for manual linking in PushNotificationsIOS – 385fa00
  • Navigator iOS doesn't update any scenes when 0th scene is replaced – 61025a9
  • Don't call npm before node is available – 7ecb693
  • Fix corner case bug in ListView – b75c939
  • Bail internal transforms if there're no transforms to run – 7bb6044
  • Fix 'Error: spawn npm ENOENT' on Windows – 749f32b
  • Fixes error when navigationBar is set back to null – 4f9086f
  • Fix FormData to support non-string, non-object values – de392b5
  • FormData can append only string or object with uri – 5061fde
  • Fix launching text editor from a Redbox stacktrace on Windows – e08a7f3
  • Fix content offset calculations when scrolling up – f8f5cb1
  • Fix CLI "sourcemap-output" option – 0065986
  • Bind this in XHR#onReadyStateChange – b8ff621

Android

New features
  • Android AppState: c2d75d7
  • Android Picker with the same API as iOS, 1dd5ba7
  • Enable WebView debugging – 2462c8f
  • WebWorkers: New c++ interface for NativeRunnable – cf350a6
  • WebWorkers: Add JSLoader API for loading script from assets with AssetLoader reference – 1bfd267
  • Added stickyHeaderIndices to ListView – 4bc425c
  • Add annotation processor for @ReactProp – 57f6cbb
  • Add onSelectionChange for Android TextInput – 6dc6794
  • Allow canceling DevServer reload requests – cb94d99
  • Add support for split build per architecture – abb81eb
  • Add support for global alert() on Android – 1dc56a6
  • Add support for Build Variants to react.gradle – bd7d10e
  • Open sourced Spinner (aka Picker, "drop down") – 1843709
  • Add removeClippedSubviews for ReactHorizontalScrollView – a10a510
Bug fixes
  • Java exception snprintf off by one – 0b15418
  • Fix build error and runtime error after proguard enabled – 5f3d08d
  • ProgressBarAndroid: default value for styleAttr – a452199
  • Don't create DevSupportManager when not in Dev mode – 6483645
  • Fix the 'end' value in the onTextInput callback for onscreen keyboard – 8ecd352
  • Fix WebView double loading – 393adac
  • Fix incorrect size issue with inline image text – 2a02621
  • Support setting elevation on any type of View – 5ac848c
  • Build React Native with Buck – 9fea485
  • Fix a crash in ViewPagerAndroid when passing a null child – bd4bf8c
  • Increase worker-farm timeout – 0d4cfa0
  • Remove fixed size of Android Switch. Fixes #3785a3d9fad
  • Fix for Android split builds: 342a763
  • Fix StyleSheet 'textAlign' for AndroidTextInput, f453e14
  • Fix Image crash on invalid source Uri 798acac
Breaking changes
  • Load assets from same folder as JSbundle – e730a9f
  • Stop using platform-specific names for WebView props – 6edcebe
  • Change the signature of onDropViewInstance. issue #5053daa93a6

iOS

New features
  • Wait for JSExecutor to tear down in RCTBridgeTests – 8772a6a
  • Added react-native run-ios9490c2c
  • Add soundName config for UILocalNotification – ac72611
  • Fixed border smearing issue – b115277
  • Add phone-pad keyboard – 25c3dd1
  • Running from XCode is more robust regarding to different node version – 3e4414
Bug fixes
  • Fixed iOS 7 support for URL query functions – 180fc06
  • Re-enable testUnderlyingBridgeIsDeallocated – 435efad
  • Fix a potential deadlock in RCTModuleData – 23cd9fe
  • Improved null url handling – 571e646
  • Fix extra native modules missing bridge after reload – 0fa1f8d
  • Update createView C function on profiler – 473f9bc
  • Multiline TextInput not wrapping in multiline – 09250aa
  • Plist key NSLocationAlwaysUsageDescription was ignored – 6623e48
  • ActionSheetIOS support for presentation from modal view controller – 43dcdaf
  • Improved shadow performance – e4c53c2
  • Invalidate JS executor when loading fails, #50908ea9a1b

Breaking changes

  • Implement Android's dispatchViewManagerCommand interface on iOS – 17df595
  • Move tests to iOS9.2 / Xcode 7.2 – adfc573, a5c1f03
  • Disable background color propagation for everything except text nodes – 7341706