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:
Yi An Yue 2016-03-16 14:47:14 -04:00
parent 39dd2ecbcb
commit 54e890aac5
1 changed files with 1 additions and 1 deletions

View File

@ -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({