From 2e6d30a8967138363cb0a3b99f268788e3fc503d Mon Sep 17 00:00:00 2001
From: Rohit Singh <36300815+rayan1810@users.noreply.github.com>
Date: Tue, 30 Nov 2021 19:28:46 +0530
Subject: [PATCH 1/4] fix: nextjs installation icon support (#148)
---
docs/install-next.mdx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/install-next.mdx b/docs/install-next.mdx
index 009424422..5619d57a7 100644
--- a/docs/install-next.mdx
+++ b/docs/install-next.mdx
@@ -134,7 +134,7 @@ We'll need 2 more additional steps.
```bash
- yarn add next-compose-plugins next-transpile-modules -D
+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
```
@@ -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',
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
module.exports = withPlugins(
[
withTM,
+ [withExpo, { projectRoot: __dirname }],
// your plugins go here.
],
{
From 4c1299121c51a594ef64cf2821a2cdbf7b3bcd39 Mon Sep 17 00:00:00 2001
From: Rohit Singh <36300815+rayan1810@users.noreply.github.com>
Date: Tue, 30 Nov 2021 19:41:55 +0530
Subject: [PATCH 2/4] Fix/installation nextjs (#150)
* fix: nextjs installation icon support
* fix: nextjs installation icon support
* fix: nextjs installation icon support
---
versioned_docs/version-3.2.2/install-next.mdx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/versioned_docs/version-3.2.2/install-next.mdx b/versioned_docs/version-3.2.2/install-next.mdx
index 4baea406b..8ba9191a7 100644
--- a/versioned_docs/version-3.2.2/install-next.mdx
+++ b/versioned_docs/version-3.2.2/install-next.mdx
@@ -134,7 +134,7 @@ We'll need 2 more additional steps.
```bash
- yarn add next-compose-plugins next-transpile-modules -D
+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
```
@@ -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',
@@ -176,6 +177,7 @@ const withTM = require('next-transpile-modules')([
module.exports = withPlugins(
[
withTM,
+ [withExpo, { projectRoot: __dirname }],
// your plugins go here.
],
{
From 40adb6d20c5901fc789ca2fb59c9e6d252fabdc7 Mon Sep 17 00:00:00 2001
From: MD-REHMAN
Date: Thu, 2 Dec 2021 13:18:56 +0530
Subject: [PATCH 3/4] fix: next 12 instal template fix
---
docs/install-next.mdx | 41 +++++++----------------------------------
1 file changed, 7 insertions(+), 34 deletions(-)
diff --git a/docs/install-next.mdx b/docs/install-next.mdx
index 5619d57a7..4e2a227a0 100644
--- a/docs/install-next.mdx
+++ b/docs/install-next.mdx
@@ -134,7 +134,7 @@ We'll need 2 more additional steps.
```bash
- yarn add next-compose-plugins next-transpile-modules @expo/next-adapter -D
+ yarn add next-compose-plugins next-transpile-modules @expo/next-adapter next-fonts -D
```
@@ -153,49 +153,22 @@ We'll need 2 more additional steps.
```js
const { withExpo } = require('@expo/next-adapter');
+const withFonts = require('next-fonts');
const withPlugins = require('next-compose-plugins');
const withTM = require('next-transpile-modules')([
+ 'react-native-web',
'native-base',
- 'react-native-svg',
- 'react-native-safe-area-context',
- '@react-aria/visually-hidden',
- '@react-native-aria/button',
- '@react-native-aria/checkbox',
- '@react-native-aria/combobox',
- '@react-native-aria/focus',
- '@react-native-aria/interactions',
- '@react-native-aria/listbox',
- '@react-native-aria/overlays',
- '@react-native-aria/radio',
- '@react-native-aria/slider',
- '@react-native-aria/tabs',
- '@react-native-aria/utils',
- '@react-stately/combobox',
- '@react-stately/radio',
]);
+const nextConfig = {};
+
module.exports = withPlugins(
[
withTM,
+ [withFonts, { projectRoot: __dirname }],
[withExpo, { projectRoot: __dirname }],
- // your plugins go here.
],
- {
- webpack: (config) => {
- config.resolve.alias = {
- ...(config.resolve.alias || {}),
- // Transform all direct `react-native` imports to `react-native-web`
- 'react-native$': 'react-native-web',
- };
- config.resolve.extensions = [
- '.web.js',
- '.web.ts',
- '.web.tsx',
- ...config.resolve.extensions,
- ];
- return config;
- },
- }
+ nextConfig
);
```
From 47efb1d2fbae5b521955cae6d1c9142f8b0fcadc Mon Sep 17 00:00:00 2001
From: Rohit Singh <36300815+rayan1810@users.noreply.github.com>
Date: Fri, 10 Dec 2021 12:01:26 +0530
Subject: [PATCH 4/4] feat: new algolia key and app id (#165)
---
docusaurus.config.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 87bcc2b43..619346c4e 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -61,8 +61,8 @@ module.exports = {
},
algolia: {
contextualSearch: true,
- apiKey: 'f422b0f98d066dbd23597e0bbd370ce2',
- indexName: 'nativebase-v3',
+ apiKey: '412c1183909b15d3314d018b0b2330ff',
+ appId: 'QT6M4WLEXP',
},
navbar: {
title: 'NativeBase',