Skip to content

Component that listens orientation changes and passes width and height to the child components

Notifications You must be signed in to change notification settings

borapop/react-native-orientation-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

react-native-orientation-wrapper

Component that listens orientation changes and passes width and height to the child components

Usage:

import OrientationWrapper from 'react-native-orientation-wrapper'
...
<OrientationWrapper>
  <YourComponent />
</OrientationWrapper>


// YourComponent

class YourComponent extends Component {
  render() {
    const { height, width } = this.props
    ...
  }
}

About

Component that listens orientation changes and passes width and height to the child components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published