lottie

undefined is not a function (evaluating'_reactNavigation.NavigationActions.reset')

大憨熊 提交于 2019-12-01 03:33:27
I want to navigate a splash screen to next screen after certain timeout. Splash screen have an animation, done with the help of Airbnb Lottie for React Native . The splashscreen code goes as follows: import React from "react"; import { Animated, Easing } from "react-native"; import LottieView from "lottie-react-native"; import { NavigationActions } from "react-navigation"; export default class SplashScreen extends React.Component { static navigationOptions = { header: null }; constructor() { super(); this.state = { progress: new Animated.Value(0), } } componentDidMount() { setTimeout(() => {