title: react native animated repeat infinity
body: <p>I have the following animation.</p>
  
  <pre><code>  componentWillMount(){
      this.animatedValue = new Animated.Value(300);
    }
  
    componentDidMount(){
      Animated.timing( this.animatedValue , {
        toValue: -100,
        duration: 3000,
  
      } ).start();
    }
  
    render() {
      const animatedStyle = { marginLeft: this.animatedValue, marginRight: - this.animatedValue };
  
      return (
        &lt;View style={{flexDirection: 'row', height: 100,}}&gt;
          &lt;Animated.View style={[ animatedStyle,{backgroundColor: 'blue', width:100}]} /&gt;
        &lt;/View&gt;
      );
    }
  </code></pre>
  
  <p>I would like to repeat endless times. Anyone have any suggestions?</p>