File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
versioned_docs/version-3.2.2 Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ We'll need 2 more additional steps.
134134 <TabItem value = " yarn" >
135135
136136``` bash
137- yarn add next-compose-plugins next-transpile-modules -D
137+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
138138```
139139
140140 </TabItem >
@@ -152,6 +152,7 @@ We'll need 2 more additional steps.
1521522 . Update your next.config.js with the below content.
153153
154154``` js
155+ const { withExpo } = require (' @expo/next-adapter' );
155156const withPlugins = require (' next-compose-plugins' );
156157const withTM = require (' next-transpile-modules' )([
157158 ' native-base' ,
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
176177module .exports = withPlugins (
177178 [
178179 withTM,
180+ [withExpo, { projectRoot: __dirname }],
179181 // your plugins go here.
180182 ],
181183 {
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ We'll need 2 more additional steps.
134134 <TabItem value = " yarn" >
135135
136136``` bash
137- yarn add next-compose-plugins next-transpile-modules -D
137+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
138138```
139139
140140 </TabItem >
@@ -152,6 +152,7 @@ We'll need 2 more additional steps.
1521522 . Update your next.config.js with the below content.
153153
154154``` js
155+ const { withExpo } = require (' @expo/next-adapter' );
155156const withPlugins = require (' next-compose-plugins' );
156157const withTM = require (' next-transpile-modules' )([
157158 ' native-base' ,
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
176177module .exports = withPlugins (
177178 [
178179 withTM,
180+ [withExpo, { projectRoot: __dirname }],
179181 // your plugins go here.
180182 ],
181183 {
You can’t perform that action at this time.
0 commit comments