Performant animated border gradients for react native using reanimated and skia
- Install
npm install react-native-animated-gradient-border
yarn add react-native-animated-gradient-border
- Ensure peer dependencies are installed (these require a new Expo build):
react-native-reanimated
@shopify/react-native-skia
import { AnimatedBorderView } from 'react-native-animated-gradient-border';
// ...
<AnimatedBorderView
style={styles.circleButton}
borderRadius={50}
borderWidth={2}
colors={['lightcoral', 'mistyrose', 'lightcoral']}
>
<Text>Submit</Text>
</AnimatedBorderView>;
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library