Using react-spring for react-native
I want to use this library for react-native but couldn't figure out how. The documentation link for react-native is broken. Can i use the library for react-native?
React-Spring can be used for react-native. They have updated it for all platform. Try this out:- yarn add react-spring@5.3.0-beta.0 import React from 'react' import { StyleSheet, Text, View, TouchableWithoutFeedback } from 'react-native' import { Spring, animated } from 'react-spring/dist/react-spring-native.esm' const styles = { flex: 1, margin: 0, borderRadius: 35, backgroundColor: 'red', alignItems: 'center', justifyContent: 'center', } export default class App extends React.Component { state = { flag: true } toggle = () => this.setState(state => ({ flag: !state.flag })) render() { const { flag } = this.state return ( <Spring native from={{ margin: 0 }} to={{ margin: flag ? 100 : 0...