title: Is it possible to use animated setValue with useNativeDriver?
body: <p>I am translating views to follow a move gesture, with least possible latency.</p>
  
  <p>I am investigating a couple of options and one of which is - if possible - to send the setValue action to UI thread, rather than the JS thread.</p>
  
  <p>Even though in the documentations it is stated that the Animated.timing, Animated.spring, etc type of functions can be offloaded to the UI thread with <code>useNativeDriver: true</code> directive, there is no reference - at least that I could have found - on if it is possible to send the direct setValue action to the UI thread or not.</p>
  
  <p>My question is; is it possible to use animated setValue with useNativeDriver and how if possible.</p>
  
  <p>Below is the rough example of the code that I am using:</p>
  
  <pre class="lang-js prettyprint-override"><code>export default class App extends React.Component {
  
    constructor(props) {
      super(props);
      this.state = {};
      this.spaceAnimatedTranslations = new Animated.ValueXY();
      this._animatedStyle = {
        transform: [
          { translateX: this.spaceAnimatedTranslations.x }, 
          { translateY: this.spaceAnimatedTranslations.y }
        ]
      };
    }
  
    onSpaceMove(event) {
      this.spaceAnimatedTranslations.setValue({x: event.nativeEvent.translationX, y: event.nativeEvent.translationY});
    }
  
    render(){
      return &lt;PanGestureHandler
          key={`test`}
          onGestureEvent={e =&gt; this.onSpaceMove(e)}&gt;
        &lt;Animated.View
            ref={ref =&gt; {
              this.testAnimatedView = ref;
            }}
            style={[this._animatedStyle]}&gt;
          &lt;View style={styles._box_content}&gt;
            {someContent}
          &lt;/View&gt;
        &lt;/Animated.View&gt;
      &lt;/PanGestureHandler&gt;
    }
  
  }
  </code></pre>