import React, { Component } from 'react'; import { Button, StyleSheet, View, Alert } from 'react-native'; import Animated, { Easing } from 'react-native-reanimated'; const { timing, spring, Value } = Animated; export default class Example extends Component { constructor(props) { super(props); this._transX = new Value(100); this._config = { toValue: -60, damping: 2, mass: 1, stiffness: 121.6, overshootClamping: false, restSpeedThreshold: 0.001, restDisplacementThreshold: 0.001, }; this._config2 = { duration: 5000, toValue: -120, easing: Easing.inOut(Easing.ease), }; this._anim2 = spring(this._transX, this._config); this._anim = timing(this._transX, this._config2); } render() { return (