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:
Michał Ordon 2017-05-31 16:38:30 +01:00
parent df8ce9569d
commit 07ef627ffd
1 changed files with 9 additions and 0 deletions

9
index.js Normal file
View File

@ -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;