Skip to content

Only-IceSoul/react-native-translateZView

Repository files navigation

TranslateZView

Change the zIndex

(Useful to change z Index of view that you have no control) (RecyclerListview)

android: api 21+
ios : 10.0+
web : zIndex

Getting started

$ npm install react-native-translatezview --save

yarn:

$ yarn add react-native-translatezview

Usage

import ZView from 'react-native-translatezview';

// TODO: What to do with the module?
 <ZView {...props}>

Props

Android: Behavior as elevation without shadow
IOS: The layer’s position.
Web: zIndex

Name type default
translateZ Number 0
translateZParent Number 0