Skip to content

Commit

Permalink
hotfix: nextjs installation icon support (#148) (#149)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
rayan1810 authored Nov 30, 2021
1 parent f9f4de9 commit 2a613e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 2a613e4

Please sign in to comment.