Last active
June 21, 2018 11:49
-
-
Save agenthunt/4b09bfce061007661b27868f64938717 to your computer and use it in GitHub Desktop.
hello-react-native-custom-renderer-view.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class View extends Component { | |
render() { | |
return ( | |
<view | |
style={{ | |
display: 'flex', | |
flexDirection: 'column', | |
...this.props.style | |
}} | |
> | |
{this.props.children} | |
</view> | |
); | |
} | |
} | |
export default View; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment