Add index.js to save everyone fiddling with their eslint and/or flow configs
Context: https://github.com/react-native-community/react-native-linear-gradient/issues/110
This commit is contained in:
parent
df8ce9569d
commit
07ef627ffd
|
@ -0,0 +1,9 @@
|
|||
import { Platform } from "react-native";
|
||||
import LinearGradientIos from "./index.ios.js";
|
||||
import LinearGradientAndroid from "./index.android.js";
|
||||
|
||||
const LinearGradient = Platform.OS === "ios"
|
||||
? LinearGradientIos
|
||||
: LinearGradientAndroid;
|
||||
|
||||
export default LinearGradient;
|
Loading…
Reference in New Issue