🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

react-native-absolute

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-absolute

React Native Global Absolute View Manager.

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

react-native-absolute

React native Global Absolute View. Inspired react-native-root-sibling.

Install

npm install react-native-absolute --save

Add wrapping absoulte App.js at render ( or regestered by AppRegistry Object renderer ).

import Absolute from 'react-native-absolute'; // import absolute.

class App extends Component<Props> {
  ...
  render(){
    return (
      <Absolute>
        ...
      </Absolute>
    )
  }
}

Rendering Absolute makes Global.Absolute to using globally.

Basic Usage

  • Create absolute view.
let ref = Absolute.add( 
  <View style={{position:'absolute', top:0, left:0, right:0, bottom:0}}>
    {...}		
  </View>
);
  • Destroy absolute view.
ref.destroy();

All it does.

Keywords

RN

FAQs

Package last updated on 06 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts