title: React Native (0.59.10) — How do I remove `useNativeDriver` when running tests (but not in the actual app)
body: <p>I am building a project with React Native (version 0.59.10). Whenever I run my tests (using Jest) I get this warning:</p>
  
  <pre><code>    console.warn node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js:248
        Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420
  </code></pre>
  
  <p>This seems to be due to the use of <code>Animated</code> in <code>TouchableOpacity</code> which is in turn used by <code>Button</code> from 'react-native-elements'.</p>
  
  <p>Looking into my project with Xcode I can see that the <code>RCNativeAnimation</code> project is there:</p>
  
  <p><a href="https://i.stack.imgur.com/PdyY2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PdyY2.png" alt="screen snap from Xcode showing RCNativeAnimation exists"></a></p>
  
  <p>I checked the referenced link: <a href="https://github.com/facebook/react-native/issues/11094#issuecomment-263240420" rel="noreferrer">https://github.com/facebook/react-native/issues/11094#issuecomment-263240420</a> but that is ages old and refers to very old versions of both React Native and Xcode.</p>
  
  <p>I am guessing this warning is just related to the native <code>RCNativeAnimation</code> module not being accessible from the tests but I am at a loss as to how to 'remove <code>useNativeDriver</code>' within the test context.  Obviously in the real app I want to ensure I am using the native animation libraries, but in the unit tests I don't care.</p>
  
  <p>What is the recommended way to eliminate this warning?</p>