Skip to content

Commit 2a613e4

Browse files
authored
hotfix: nextjs installation icon support (#148) (#149)
* fix: nextjs installation icon support (#148) * Fix/installation nextjs (#150) * fix: nextjs installation icon support * fix: nextjs installation icon support * fix: nextjs installation icon support
1 parent f9f4de9 commit 2a613e4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/install-next.mdx

+3-1
Original file line numberDiff line numberDiff 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.
152152
2. Update your next.config.js with the below content.
153153

154154
```js
155+
const { withExpo } = require('@expo/next-adapter');
155156
const withPlugins = require('next-compose-plugins');
156157
const withTM = require('next-transpile-modules')([
157158
'native-base',
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
176177
module.exports = withPlugins(
177178
[
178179
withTM,
180+
[withExpo, { projectRoot: __dirname }],
179181
// your plugins go here.
180182
],
181183
{

versioned_docs/version-3.2.2/install-next.mdx

+3-1
Original file line numberDiff line numberDiff 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.
152152
2. Update your next.config.js with the below content.
153153

154154
```js
155+
const { withExpo } = require('@expo/next-adapter');
155156
const withPlugins = require('next-compose-plugins');
156157
const withTM = require('next-transpile-modules')([
157158
'native-base',
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
176177
module.exports = withPlugins(
177178
[
178179
withTM,
180+
[withExpo, { projectRoot: __dirname }],
179181
// your plugins go here.
180182
],
181183
{

0 commit comments

Comments
 (0)