update
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { StyleSheet, View } from "react-native";
|
||||
|
||||
import { GradientBorderView } from "../GradientBorderView";
|
||||
|
||||
const BorderGradient = ({ children, gradientProps, ...props }) => {
|
||||
return (
|
||||
<GradientBorderView
|
||||
gradientProps={{
|
||||
start: { x: 0, y: 0 },
|
||||
end: { x: 1, y: 0 },
|
||||
...gradientProps
|
||||
}}
|
||||
{...props}>
|
||||
|
||||
<View style={styles.innerContainer}>{children}</View>
|
||||
</GradientBorderView>);
|
||||
|
||||
};
|
||||
|
||||
export default BorderGradient;
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
innerContainer: {
|
||||
flex: 1,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user