From 07ef627ffd0d542a06160c4b920c6f5b16b5e513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ordon?= Date: Wed, 31 May 2017 16:38:30 +0100 Subject: [PATCH] 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 --- index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..e4ca903 --- /dev/null +++ b/index.js @@ -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;