title: React Native TypeScript Error: Module '"react-native"' has no exported member 'Appearance'
body: <p>I've recently implemented dark mode into my app, but having an issue with an error when building the npm package with <code>npm build</code>. The code works, but is there a way or a reason to remove this error?</p>
  <p><a href="https://reactnative.dev/docs/appearance" rel="noreferrer">React Native Docs: Appearance</a></p>
  <p><strong>Error</strong></p>
  <pre><code>src/ContactActionSheet.tsx:3:10 - error TS2305: Module '&quot;react-native&quot;' has no exported member 'Appearance'.
  
  3 import { Appearance, Dimensions, StyleSheet, Text, View, Linking, TouchableOpacity } from 'react-native';
  </code></pre>
  <p><strong>JSX</strong></p>
  <pre><code>// Imports: Dependencies
  import { Appearance, Dimensions, StyleSheet, Text, View, Linking, TouchableOpacity } from 'react-native';
  
  // Dark Mode
  const colorScheme = Appearance.getColorScheme();
  </code></pre>