title: Use Firebase In-App-Messaging in Expo Project
body: <p>I'm trying to add in a built-in application with react-native-expo a series of tools from firebase.I managed to add the following features <strong>Cloud Messaging</strong> and <strong>Firebase Analitycs</strong>.But I have to integrate <strong>In-app-messaging</strong> and <strong>Dynamic links</strong></p>
  <p>First time I install all firebase module/dependencies to do this task.</p>
  <pre><code>&quot;@react-native-firebase/app&quot;: &quot;^12.9.3&quot;,
  &quot;@react-native-firebase/in-app-messaging&quot;: &quot;^12.9.3&quot;,
  </code></pre>
  <p>and my file looks like:</p>
  <pre><code>.......
  import inAppMessaging from '@react-native-firebase/in-app-messaging
  .......
  useEffect(()=&gt;{
     await inAppMessaging().setMessagesDisplaySuppressed(true);
  }[])
  </code></pre>
  <p>but I recive a warning:
  <strong>]Unhandled promise rejection: Error: You attempted to use a firebase module that's not installed on your Android project by calling firebase.app().</strong></p>
  <p>After that I try to find a solution,I learn that expo allow to create <strong>plugins</strong> to extend expo <strong>functionality</strong>
  I tty to salve problem fallow <a href="https://docs.expo.dev/guides/config-plugins/" rel="nofollow noreferrer">expo documentation</a>  but I couldn't figure out how to create these plugins.</p>
  <p>Next I find a module that can help me <a href="https://www.npmjs.com/package/with-rn-firebase" rel="nofollow noreferrer">with-rn-firebase</a>  but is not working and the module is depeciated.</p>
  <p>Then I searched the internet until I discovered other people with the same problem <a href="https://fantashit-com.translate.goog/error-cannot-find-module-fs-promises/?_x_tr_sl=en&amp;_x_tr_tl=ro&amp;_x_tr_hl=en-US&amp;_x_tr_pto=nui,op,sc" rel="nofollow noreferrer">this is the link</a> I see in their app.json a basic config of plugin and I try to implement in my project,after I install dependencies that I need i add in my file:</p>
  <pre><code>&quot;plugins&quot;: [
      &quot;@react-native-firebase/app&quot;,
      &quot;@react-native-firebase/analytics&quot;,
      &quot;@react-native-firebase/in-app-messaging&quot;
    
  ],
  </code></pre>
  <p>But the fallowing error occure:
  <strong>Package &quot;@react-native-firebase/analytics&quot; does not contain a valid config plugin.
  Learn more: <a href="https://docs.expo.io/guides/config-plugins/#creating-a-plugin" rel="nofollow noreferrer">https://docs.expo.io/guides/config-plugins/#creating-a-plugin</a>
  Cannot use import statement outside a mo</strong>dule</p>
  <p>What I mean is, if anyone has ever faced this problem, I want in my project to be able to use in-app-messaging and dynamyc-links if someone has tried an implementation with expo and has any idea</p>