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/docs/guides/01-getting-started.mdx
+37-11Lines changed: 37 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,54 @@
2
2
title: Getting Started
3
3
---
4
4
5
+
importTabItemfrom'@theme/TabItem';
6
+
importTabsfrom'@theme/Tabs';
7
+
5
8
# Getting Started
6
9
7
10
## Installation
8
11
9
-
-Open a Terminal in your project's folder and run:
12
+
Open a Terminal in your project's folder and install the library:
10
13
11
14
```bash npm2yarn
12
15
npm install react-native-paper
13
16
```
14
17
15
-
- From `v5` there is a need to install [react-native-safe-area-context](https://github.com/th3rdwave/react-native-safe-area-context) for handling safe area.
18
+
React Native Paper uses [react-native-safe-area-context](https://github.com/th3rdwave/react-native-safe-area-context) for handling safe area, [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/) and [react-native-worklets](https://docs.swmansion.com/react-native-worklets/) for animations.
Additionaly for `iOS` platform there is a requirement to link the native parts of the library:
27
+
Minimum requirements:
22
28
23
-
```bash
24
-
npx pod-install
29
+
-`react-native-reanimated`**≥ 4.3.0**
30
+
-`react-native-worklets`**≥ 0.8.1**
31
+
-`react-native-safe-area-context` — version compatible with your React Native toolchain.
32
+
33
+
Follow the [React Native Reanimated installation guide](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/).
34
+
35
+
If you use Expo, you don't need to install vector icons - those are the part of the expo package. However, if you have a `babel.config.js` or `.babelrc` file, make sure that it includes `babel-preset-expo`.
- If you're on a vanilla React Native project, you also need to install and link [@react-native-vector-icons/material-design-icons](https://github.com/oblador/react-native-vector-icons).
44
+
Minimum requirements:
45
+
46
+
-`react-native-reanimated`**≥ 4.3.0**
47
+
-`react-native-worklets`**≥ 0.8.1**
48
+
-`react-native-safe-area-context` — version compatible with your React Native toolchain.
49
+
50
+
Follow the [React Native Reanimated installation guide](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/).
51
+
52
+
If you're on a vanilla React Native project, you also need to install and link [@react-native-vector-icons/material-design-icons](https://github.com/oblador/react-native-vector-icons).
28
53
29
54
Specifically `MaterialDesignIcons` icon pack needs to be included in the project, because some components use those internally (e.g. `AppBar.BackAction` on Android).
The `react-native-vector-icons` library requires some additional setup steps for each platform. To ensure proper use of icon fonts, please follow their [installation guide](https://github.com/oblador/react-native-vector-icons?tab=readme-ov-file#setup).
37
62
:::
38
63
39
-
If you use Expo, you don't need to install vector icons - those are the part of the expo package. However, if you have a `babel.config.js` or `.babelrc` file, make sure that it includes `babel-preset-expo`.
40
-
41
64
:::info
42
65
If you don't want to install vector icons, you can use [babel-plugin-optional-require](https://github.com/satya164/babel-plugin-optional-require) to opt-out.
Copy file name to clipboardExpand all lines: docs/docs/guides/03-icons.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ import IconsList from '@site/src/components/IconsList.tsx';
10
10
11
11
## Configuring icons
12
12
13
-
Many of the components require the [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) library to render correctly. If you're using Expo, you don't need to do anything extra, but if it's a vanilla React Native project, you need to link the library as described in the [getting started guide](./01-getting-started.md).
13
+
Many of the components require the [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) library to render correctly. If you're using Expo, you don't need to do anything extra, but if it's a vanilla React Native project, you need to link the library as described in the [getting started guide](./01-getting-started.mdx).
14
14
15
15
:::note
16
16
If you opted out of vector icons support using [babel-plugin-optional-require](https://github.com/satya164/babel-plugin-optional-require), you won't be able to use icon names for the icon prop. Some components may not look correct without vector icons and might need extra configuration.
0 commit comments