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;