You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/articles/guides/configure-navigation.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,10 +170,7 @@ UI Kitten includes much more components that can be used with React Navigation:
170
170
## Note on the other navigation libraries
171
171
172
172
Since React Navigation is not the only solution to perform routing within the React Native app, you might be interested
173
-
in other navigation libraries like React Native Navigation by Wix. Currently, UI Kitten is not well-adopted to be used
174
-
with this library and might have some performance issues.
175
-
176
-
Consider using React Navigation since UI Kitten has better API support with it.
173
+
in other navigation libraries like React Native Navigation by Wix. By default, UI Kitten is not well adopted to work with this library, and you may need to [improve it's performance](guides/improving-performance).
By default, UI Kitten is configured with processing Eva mapping packages during the runtime. This may lead to performance issues when using [mapping customization](design-system/customize-mapping) or React Native Navigation by Wix. By following this guide, you will know how to get rid of this and save time your application takes on loading.
4
+
5
+
## Configuration
6
+
7
+
Install the additional metro configuration:
8
+
9
+
```bash
10
+
npm i -D @ui-kitten/metro-config
11
+
```
12
+
13
+
Create **metro.config.js** at the root of your project if you don't have this file yet and place the following code:
Restart Metro Bundler if it is running to apply the changes.
43
+
44
+
<hr>
45
+
46
+
## Definition
47
+
48
+
Let's take a look on the **evaConfig** we define:
49
+
50
+
**evaPackage** represents the name of Eva Design System package installed.
51
+
52
+
In this example, we use `@eva-design/eva`.
53
+
It may be one of the valid Eva Design System packages.
54
+
55
+
**customMappingPath** represents a path to custom mapping if you use [mapping customization](design-system/customize-mapping) feature. You may omit it if you do not customize Eva.
56
+
57
+
The second argument of `create` function is a standard configuration of Metro Bundler. In case you had `metro.config.js` previously, pass the object you had to merge it with UI Kitten configuration.
0 commit comments