react-native/ReactAndroid
Janic Duplessis 114dde99ce Fix TouchableNativeFeedback state propagating to children
Summary:For some reason Android propagates the the pressed state to all of the ViewGroup's children when calling `setPressed`. This caused the issue described in #3952. Luckily we can override the `dispatchSetPressed` method of ViewGroup to prevent it from doing so.

Had to dig in the Android source a bit to find this one, here's the relevant pieces :
https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/View.java#L7883
https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewGroup.java#L3722

**Test plan (required)**
Reproduced the bug using [this gist](https://gist.github.com/janicduplessis/9f1d42c670aefd660afb4c96e8bb6a4f) in UIExplorer. Touching the parent should not trigger the ripple on the children.

I also made sure all the touchable still work properly.

Fixes #3952
Closes https://github.com/facebook/react-native/pull/6783

Differential Revision: D3133407

fb-gh-sync-id: 317e55de2652ea185a1082cd96b8fe3a8b807962
fbshipit-source-id: 317e55de2652ea185a1082cd96b8fe3a8b807962
2016-04-04 08:48:22 -07:00
..
libs Add BUCK files 2016-01-22 16:20:13 +00:00
src Fix TouchableNativeFeedback state propagating to children 2016-04-04 08:48:22 -07:00
.npmignore Don't publish /ReactAndroid/build to npm, update version on master 2015-10-12 11:11:40 -07:00
DEFS Initialize glog in react native 2016-03-10 06:02:21 -08:00
DevExperience.md Fixed typo 2015-12-31 12:26:10 +04:00
README.md Clean up docs on building RN Android from source 2016-02-18 07:59:39 -08:00
build.gradle Remove stetho dependency in OSS react native's NetworkingModule 2016-03-23 12:41:24 -07:00
gradle.properties Version release script 2016-03-24 08:41:24 -07:00
release.gradle New release process: Fix installArchives 2016-02-09 10:30:32 -08:00

README.md

Building React Native for Android

See docs on the website.