Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/install-next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ We'll need 2 more additional steps.
<TabItem value="yarn">

```bash
yarn add next-compose-plugins next-transpile-modules -D
yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
```

</TabItem>
Expand All @@ -152,6 +152,7 @@ We'll need 2 more additional steps.
2. Update your next.config.js with the below content.

```js
const { withExpo } = require('@expo/next-adapter');
const withPlugins = require('next-compose-plugins');
const withTM = require('next-transpile-modules')([
'native-base',
Expand All @@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
module.exports = withPlugins(
[
withTM,
[withExpo, { projectRoot: __dirname }],
// your plugins go here.
],
{
Expand Down
4 changes: 3 additions & 1 deletion versioned_docs/version-3.2.2/install-next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ We'll need 2 more additional steps.
<TabItem value="yarn">

```bash
yarn add next-compose-plugins next-transpile-modules -D
yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
```

</TabItem>
Expand All @@ -152,6 +152,7 @@ We'll need 2 more additional steps.
2. Update your next.config.js with the below content.

```js
const { withExpo } = require('@expo/next-adapter');
const withPlugins = require('next-compose-plugins');
const withTM = require('next-transpile-modules')([
'native-base',
Expand All @@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
module.exports = withPlugins(
[
withTM,
[withExpo, { projectRoot: __dirname }],
// your plugins go here.
],
{
Expand Down