title: How to resolve Unhandled promise rejection: Error: Unable to activate keep awake React Native
body: <p>Hello I am completely new on React Native so I am busy trying to get the gist of it, so I after I added this of code I started getting the following error below.</p>
  <pre><code>[Unhandled promise rejection: Error: Unable to activate keep awake]
  - node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:103:50 in   promiseMethodWrapper
  - node_modules/@unimodules/react-native-adapter/build /NativeModulesProxy.native.js:15:23 in moduleName.methodInfo.name
  - node_modules/expo-keep-awake/build/index.js:10:58 in activateKeepAwake
  - node_modules/expo/build/launch/registerRootComponent.expo.js:6:4 in &lt;global&gt;
  - node_modules/metro/src/lib/polyfills/require.js:321:11 in loadModuleImplementation
  - node_modules/expo/AppEntry.js:1:0 in &lt;global&gt;
  - node_modules/metro/src/lib/polyfills/require.js:321:11 in loadModuleImplementation
  - node_modules/metro/src/lib/polyfills/require.js:201:44 in guardedLoadModule
  * http://192.168.1.96:19001/node_modules/expo/AppEntry.bundle?platform=android&amp; dev=true&amp;minify=false&amp;hot=false:154700:3 in global code
  </code></pre>
  <p><strong>Below is the code that I added that maybe resulted to that error</strong></p>
  <pre><code>import { FloatingAction } from &quot;react-native-floating-action&quot;;
  const FloatingHomeButton = () =&gt; {
    const actions = [
      {
        text: &quot;Accessibility&quot;,
        icon: require(&quot;../images/tweet.png&quot;),
        name: &quot;bt_accessibility&quot;,
        position: 2,
      },
    ];
    return (
      &lt;View style={styles.button}&gt;
        &lt;FloatingAction
          actions={actions}
          onPressItem={() =&gt; {
            console.log(`selected button`);
          }}
        /&gt;
      &lt;/View&gt;
    );
  };
  </code></pre>
  <p>Can I please get help on how I can resolve this issue and if possible can I please be told what could be causing this error</p>