File tree 2 files changed +6
-2
lines changed
versioned_docs/version-3.2.2
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.
134
134
<TabItem value = " yarn" >
135
135
136
136
``` bash
137
- yarn add next-compose-plugins next-transpile-modules -D
137
+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
138
138
```
139
139
140
140
</TabItem >
@@ -152,6 +152,7 @@ We'll need 2 more additional steps.
152
152
2 . Update your next.config.js with the below content.
153
153
154
154
``` js
155
+ const { withExpo } = require (' @expo/next-adapter' );
155
156
const withPlugins = require (' next-compose-plugins' );
156
157
const withTM = require (' next-transpile-modules' )([
157
158
' native-base' ,
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
176
177
module .exports = withPlugins (
177
178
[
178
179
withTM,
180
+ [withExpo, { projectRoot: __dirname }],
179
181
// your plugins go here.
180
182
],
181
183
{
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ We'll need 2 more additional steps.
134
134
<TabItem value = " yarn" >
135
135
136
136
``` bash
137
- yarn add next-compose-plugins next-transpile-modules -D
137
+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
138
138
```
139
139
140
140
</TabItem >
@@ -152,6 +152,7 @@ We'll need 2 more additional steps.
152
152
2 . Update your next.config.js with the below content.
153
153
154
154
``` js
155
+ const { withExpo } = require (' @expo/next-adapter' );
155
156
const withPlugins = require (' next-compose-plugins' );
156
157
const withTM = require (' next-transpile-modules' )([
157
158
' native-base' ,
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
176
177
module .exports = withPlugins (
177
178
[
178
179
withTM,
180
+ [withExpo, { projectRoot: __dirname }],
179
181
// your plugins go here.
180
182
],
181
183
{
You can’t perform that action at this time.
0 commit comments