react-native-measureme
0.0.2 • Public • Published react-native-measureme
A HOC to make your React-Native components aware of their width
and height
Installation
npm i --save react-native-measureme
Usage
import React from 'react';
import {View} from 'react-native';
const SizeAwareComponent = React.createClass({
render(){
<View style={{width:this.props.width, height:this.props.height}} />
}
});
module.exports = require('react-native-measureme')(SizeAwareComponent);
Development
PRs highly appreciated
License
MIT License
Package Sidebar
Install
npm i react-native-measureme
Weekly Downloads