We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 704278b + ac93a0e commit ef98927Copy full SHA for ef98927
index.js
@@ -1,11 +1,11 @@
1
import React from "react";
2
import { View, StyleSheet } from "react-native";
3
import generateGradient from "./generator";
4
+import { LinearGradient } from "expo-linear-gradient";
5
6
export { generateGradient };
7
8
export default ({ gradient, children, style }) => {
- const LinearGradient = require("expo").LinearGradient;
9
const generated = generateGradient(gradient, {
10
width: style.width,
11
height: style.height
package.json
@@ -18,6 +18,7 @@
18
},
19
"peerDependencies": {
20
"expo": "*",
21
+ "expo-linear-gradient": "*",
22
"react": "*",
23
"react-native": "*"
24
}
0 commit comments