Skip to content

Commit

Permalink
Removed fabric section for clarity
Browse files Browse the repository at this point in the history
The fabric installation is the same as non-fabric. Only difference is the pod install command, but expect users to know to run the one that relates to their react native architecture
  • Loading branch information
grahammendick committed Dec 31, 2023
1 parent 984ca7f commit 50563c2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions documentation/native/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ <h1>Setup</h1>
<p>
Install the three navigation packages from npm.
</p>
<pre><code class="language-js">npm install navigation navigation-react navigation-react-native

cd ios && pod install && cd ..</code></pre>
<pre><code class="language-js">npm install navigation navigation-react navigation-react-native</code></pre>
<p>
Run the <code>pod install</code> command.
</p>
<p>
Replace the code in <code>App.js</code> with the following:
</p>
Expand All @@ -83,11 +84,6 @@ <h1>Setup</h1>
If you want to use <a href="https://m3.material.io/">Material Design 3</a> on Android then configure a <code>Material3</code> theme in styles.xml. For example,
</p>
<pre><code class="language-jsx">&lt;style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar"></code></pre>
<h2>The New Architecture (Fabric)</h2>
<p>
The setup on the new React Native architecture is identical except you have to enable the new architecture when you run <code>pod install</code>.
</p>
<pre><code class="language-js">cd ios && RCT_NEW_ARCH_ENABLED=1 pod install && cd ..</code></pre>
</div>
</div>
<script type="text/javascript" src="../../js/prism.js"></script>
Expand Down

0 comments on commit 50563c2

Please sign in to comment.