<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jay-F Nnadi</title>
    <description>The latest articles on Forem by Jay-F Nnadi (@jayf_nnadi_47ea457bb6e32).</description>
    <link>https://forem.com/jayf_nnadi_47ea457bb6e32</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3813370%2Ff95b6aea-4c01-42ac-8bb0-fd7975646ce6.png</url>
      <title>Forem: Jay-F Nnadi</title>
      <link>https://forem.com/jayf_nnadi_47ea457bb6e32</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jayf_nnadi_47ea457bb6e32"/>
    <language>en</language>
    <item>
      <title>Luna Validation Published</title>
      <dc:creator>Jay-F Nnadi</dc:creator>
      <pubDate>Sat, 14 Mar 2026 18:06:53 +0000</pubDate>
      <link>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-3355</link>
      <guid>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-3355</guid>
      <description>&lt;h1&gt;
  
  
  Luna Validation
&lt;/h1&gt;

&lt;p&gt;Automated validation post.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Luna Validation Published</title>
      <dc:creator>Jay-F Nnadi</dc:creator>
      <pubDate>Fri, 13 Mar 2026 16:35:33 +0000</pubDate>
      <link>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-35l0</link>
      <guid>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-35l0</guid>
      <description>&lt;h1&gt;
  
  
  Luna Validation
&lt;/h1&gt;

&lt;p&gt;Automated validation post.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Luna Validation Published</title>
      <dc:creator>Jay-F Nnadi</dc:creator>
      <pubDate>Fri, 13 Mar 2026 16:02:50 +0000</pubDate>
      <link>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-2gbh</link>
      <guid>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-2gbh</guid>
      <description>&lt;h1&gt;
  
  
  Luna Validation
&lt;/h1&gt;

&lt;p&gt;Automated validation post.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Luna Validation Published</title>
      <dc:creator>Jay-F Nnadi</dc:creator>
      <pubDate>Fri, 13 Mar 2026 14:19:41 +0000</pubDate>
      <link>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-48lk</link>
      <guid>https://forem.com/jayf_nnadi_47ea457bb6e32/luna-validation-published-48lk</guid>
      <description>&lt;h1&gt;
  
  
  Luna Validation
&lt;/h1&gt;

&lt;p&gt;Automated validation post.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Add RevenueCat to a React Native App</title>
      <dc:creator>Jay-F Nnadi</dc:creator>
      <pubDate>Sun, 08 Mar 2026 21:47:20 +0000</pubDate>
      <link>https://forem.com/jayf_nnadi_47ea457bb6e32/how-to-add-revenuecat-to-a-react-native-app-5g61</link>
      <guid>https://forem.com/jayf_nnadi_47ea457bb6e32/how-to-add-revenuecat-to-a-react-native-app-5g61</guid>
      <description>&lt;h1&gt;
  
  
  How to Add RevenueCat to a React Native App
&lt;/h1&gt;

&lt;p&gt;RevenueCat can remove a lot of subscription plumbing, but most teams still lose time on the first working integration. The fastest path is to wire a minimal client that can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;initialize the SDK correctly&lt;/li&gt;
&lt;li&gt;fetch the current offering&lt;/li&gt;
&lt;li&gt;purchase the first available package&lt;/li&gt;
&lt;li&gt;restore purchases&lt;/li&gt;
&lt;li&gt;inspect active entitlements&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This walkthrough matches the runnable Luna demo in &lt;code&gt;projects/revenuecat-react-native-example&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Install the SDK
&lt;/h2&gt;

&lt;p&gt;Use the React Native RevenueCat package in your app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;react-native-purchases
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you are using Expo with native modules, make sure your project is configured for the native build flow required by the package.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Add platform API keys
&lt;/h2&gt;

&lt;p&gt;RevenueCat uses different public SDK keys per platform. In the Luna demo, the app reads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EXPO_PUBLIC_REVENUECAT_IOS_API_KEY=appl_public_sdk_key
EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY=goog_public_sdk_key
EXPO_PUBLIC_REVENUECAT_WEB_API_KEY=web_public_sdk_key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Configure RevenueCat on app startup
&lt;/h2&gt;

&lt;p&gt;Initialize the SDK once and immediately fetch offerings and customer info:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;Purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setLogLevel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;LOG_LEVEL&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;DEBUG&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;configure&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;apiKey&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;offerings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getOfferings&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getCustomerInfo&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives you the two most important building blocks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the current paywall/offering to display&lt;/li&gt;
&lt;li&gt;the current entitlement state for the signed-in user&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Purchase the current package
&lt;/h2&gt;

&lt;p&gt;The simplest working purchase flow is to take the first package from the current offering:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;purchasePackage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;offering&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;availablePackages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;span class="nf"&gt;setCustomerInfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;customerInfo&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In production, map packages to explicit product UI instead of assuming the first package is the one you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Restore purchases
&lt;/h2&gt;

&lt;p&gt;Every subscription UI should provide a restore path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;Purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;restorePurchases&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nf"&gt;setCustomerInfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;info&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is especially important when users change devices or reinstall the app.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Inspect entitlements
&lt;/h2&gt;

&lt;p&gt;Once customer info is available, active entitlements tell you what the user should be allowed to access:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;entitlements&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;customerInfo&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;entitlements&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;active&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;{});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the simplest way to drive premium UI state in a client demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  What developers learn from this demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;how to initialize RevenueCat correctly in React Native&lt;/li&gt;
&lt;li&gt;how to load offerings&lt;/li&gt;
&lt;li&gt;how to trigger a purchase&lt;/li&gt;
&lt;li&gt;how to restore purchases&lt;/li&gt;
&lt;li&gt;how to inspect active entitlements&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;The gap for many mobile teams is not understanding RevenueCat conceptually. The gap is getting to the first working implementation fast. This example is intentionally narrow so you can get a real purchase loop working before adding account systems, paywall design, and backend coordination.&lt;/p&gt;

</description>
      <category>revenuecat</category>
      <category>reactnative</category>
      <category>subscriptions</category>
    </item>
  </channel>
</rss>
