react-native-macos/ReactAndroid
Janic Duplessis 0348953914 Allow passing partial contentOffset to ScrollView on Android (#28817)
Summary:
Since support for contentOffset was added to horizontal ScrollView on android (30cc158a87) I'm seeing a crash in my app because of a library. What happens is that it passes a partial object for contentOffset so something like `{x: 1}` which causes a crash on Android.

According to the flow types the object should always contain both x and y but I think we should preserve the runtime behaviour and just use 0 like iOS does.

## Changelog

[Android] [Fixed] - Allow passing partial contentOffset to ScrollView on Android
Pull Request resolved: https://github.com/facebook/react-native/pull/28817

Test Plan: Tested that passing partial object for contentOffset does not crash.

Reviewed By: JoshuaGross

Differential Revision: D21396319

Pulled By: shergin

fbshipit-source-id: 4b52c868e3bfe183ff7f68a76ac34d1abd5e1069
2020-05-04 21:54:35 -07:00
..
libs Upgrade Android support library to version 28 in RN 2019-01-22 10:44:53 -08:00
src Allow passing partial contentOffset to ScrollView on Android (#28817) 2020-05-04 21:54:35 -07:00
.npmignore Don't publish /ReactAndroid/build to npm, update version on master 2015-10-12 11:11:40 -07:00
DevExperience.md Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
README.md Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
build.gradle PlatformColor implementations for iOS and Android (#27908) 2020-03-02 15:12:09 -08:00
gradle.properties Bump SoLoader version to 0.8.2 2020-02-12 10:10:39 -08:00
proguard-rules.pro Add ProGuard rule for hermes (#28571) 2020-04-09 13:48:55 -07:00
release.gradle Tidy up license headers [1/n] 2019-10-16 10:06:33 -07:00

README.md

Building React Native for Android

See the docs on the website.

Running tests

When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.