Possible Fix for #62 & error with React-Native 0.22.0+
With the new React-Native build (0.22.0+), this fixes the error: `Requiring unknown module "flattenStyle"`
This commit is contained in:
parent
39dd2ecbcb
commit
54e890aac5
|
@ -1,5 +1,5 @@
|
|||
var React = require('react-native');
|
||||
var flattenStyle = require('flattenStyle');
|
||||
var flattenStyle = React.StyleSheet.flatten;
|
||||
var { requireNativeComponent, processColor, PropTypes, View } = React;
|
||||
|
||||
var LinearGradient = React.createClass({
|
||||
|
|
Loading…
Reference in New Issue