mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c2a55baf80
Summary: **Motivation** Currently to use the `hitSlop` property on Android you must define the object properties `left`, `top`, `right`, and `bottom` or it will crash. iOS allows omitting object properties from the hitSlop. This change guards and allows the `hitSlop` object properties to be optional like iOS. **Test plan (required)** Run the [example](https://github.com/facebook/react-native/blob/f930270b005953bb7083190eef60d050e4de7607/Examples/UIExplorer/js/TouchableExample.js#L318) and omit a hitslop property and check it does not crash. Closes https://github.com/facebook/react-native/pull/10952 Differential Revision: D4182815 Pulled By: ericvicenti fbshipit-source-id: 07d7aca67b5739d5d1939b257476c24dcb10cbb0
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.