Janic Duplessis
9a51fa8e15
Improve z-index implementation on Android
...
Summary:
Use `getChildDrawingOrder` instead of reordering views. The old implementation didn't work properly when `removeClippedSubviews` was enabled and this one should have better performance since we don't play with the view hierarchy at all.
This fixes weird bugs with sticky headers in `SectionList` and allows removing the hack that disabled `removeClippedSubviews` when using sticky section headers.
**Test plan**
Tested using the SectionList and ListViewPaging examples that use sticky headers which uses z-index.
Closes https://github.com/facebook/react-native/pull/13105
Reviewed By: sahrens
Differential Revision: D4765869
Pulled By: achen1
fbshipit-source-id: be3c824658a3ce965b6e7324ad95c77cbd8a86ae
2017-04-05 09:17:46 -07:00
Ahmed El-Helw
5f41769485
Fix ViewPager behavior with Nodes
...
Summary: Add a batch addition operation for ViewPager.
Differential Revision: D3597840
fbshipit-source-id: 1c9c42e03da2492444298220e75f547b6567b4e5
2016-07-22 15:43:27 -07:00
Tucker Connelly
3d3b067f6f
Add zIndex support
...
Summary:
Adds zIndex support :)
**Test Plan**
Tested the following components by adding two of each, overlapping them, and setting a high zIndex on the first of the two:
ActivityIndicator
Image
MapView
Picker
ScrollView
Slider
Switch
Text
TextInput
View
WebView
Tested on Android 4.1 and iOS 8.4. Also tested updating zIndexes on Views in my own app.
<img width="359" alt="ios activityindicator" src="https://cloud.githubusercontent.com/assets/4349082/15633473/88f842cc-257b-11e6-8539-c41c0b179f80.png ">
<img width="330" alt="android activityindicator" src="https://cloud.githubusercontent.com/assets/4349082/15633475/88f95784-257b-11e6-80c0-2bf3ed836503.png ">
<img width="357" alt="ios image" src="https://cloud.githubusercontent.com/assets/4349082/15633474/88f93d80-257b-11e6-9e54-4ff8e4d25f71.png ">
<img width="340" alt="android image" src="https://cloud.githubusercontent.com/assets/4349082/15633478/88fd2788-257b-11e6-8c80-29078e65e808.png ">
<img width="342" alt="android picker" src="ht
Closes https://github.com/facebook/react-native/pull/7825
Differential Revision: D3469374
Pulled By: lexs
fbshipit-source-id: b2b74b71d968ebf73ecfd457ace3f35f8f7c7658
2016-06-29 07:43:23 -07:00
Ahmed El-Helw
68c11e55ee
Promote grandchildren of certain views are Views
...
Reviewed By: astreet
Differential Revision: D3161232
fbshipit-source-id: ea313d513bd7567e32f18765d479ba0538f2efbf
2016-06-02 14:13:28 -07:00
Janic Duplessis
0fb5ccf6af
Add support for delete animation in LayoutAnimation on Android
...
Summary:
Android follow up to #6779
**Test plan**
Tested add/removing views in the UIExample explorer with and without setting a LayoutAnimation. Tested that user interation during the animation is properly disabled.

Closes https://github.com/facebook/react-native/pull/7171
Differential Revision: D3352450
Pulled By: astreet
fbshipit-source-id: 233efa041626eb26d99511d12a924e54a10f96cc
2016-05-26 05:28:26 -07:00
Denis Koroskin
ad74dabb68
Turn FlatViewManager into ViewGroupManager
...
Reviewed By: ahmedre
Differential Revision: D2768667
fb-gh-sync-id: 39298e4033aab5ca8230516f98da252790811f14
2015-12-17 13:31:31 -08:00
Krzysztof Magiera
bd1885b5d4
Cleanup native view hierarchy when view is dropped.
...
Differential Revision: D2659738
fb-gh-sync-id: 1c14b8c3c6fabbd0e580777bb94221df6dd98f71
2015-11-17 02:06:28 -08:00
Krzysztof Magiera
6c204dcbea
Update ViewGroupManager interface to use index for remove method.
...
Differential Revision: D2610700
fb-gh-sync-id: b59dfc581d9ca8d29203b5915fb743f3270989ab
2015-11-03 08:57:28 -08:00
Krzysztof Magiera
589df04846
Introduce @ReactProp-enabled LayoutShadowNode as a baseclass for most of the shadow nodes.
...
Differential Revision: D2540232
fb-gh-sync-id: 6dfed70c8253973897f4e447377ec5561862da23
2015-10-14 01:41:26 -07:00
Krzysztof Magiera
42e9189b77
Add getShadowNodeClass method to ViewManager interface.
...
Differential Revision: D2535731
fb-gh-sync-id: 7a68778ea4ca47b113d73b1d638d74d905ea2da5
2015-10-13 06:44:19 -07:00
Krzysztof Magiera
bf598647d2
Convert View to @ReactProp.
...
Differential Revision: D2479795
committer: Service User <svcscm@fb.com >
2015-09-25 03:14:28 -07:00
Martin Konicek
42eb5464fd
Release React Native for Android
...
This is an early release and there are several things that are known
not to work if you're porting your iOS app to Android.
See the Known Issues guide on the website.
We will work with the community to reach platform parity with iOS.
2015-09-14 18:13:39 +01:00