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
@@ -383,11 +384,22 @@ On iOS & Android, only one label is supported (unless it is inside a submenu). I
383
384
384
385
Renders an arrow on web only. This helps point the content to the trigger. The `Arrow` must be rendered inside of `Content`.
385
386
386
-
| Prop | Required | Default | Platforms |
387
-
| -------- | -------- | ------- | --------- |
388
-
| `style` | | | `web` |
389
-
| `height` | | | `web` |
390
-
| `width` | | | `web` |
387
+
By default, Radix renders the arrow as an `<svg>` element. You can customize the SVG arrow color by passing a `fill` prop, `className`, or `style` object with a `fill` property.
388
+
389
+
:::caution
390
+
391
+
Because the arrow is an `<svg>` element, its `style` prop is not React Native compatible. Styling it with React Native libraries may not work as expected. If you would like to render a custom styled `<View>`, use the `asChild` prop instead of wrapping this component.
@@ -348,11 +349,22 @@ On iOS & Android, only one label is supported (unless it is inside a submenu). I
348
349
349
350
Renders an arrow on web only. This helps point the content to the trigger. The `Arrow` must be rendered inside of `Content`.
350
351
351
-
| Prop | Required | Default | Platforms |
352
-
| -------- | -------- | ------- | --------- |
353
-
| `style` | | | `web` |
354
-
| `height` | | | `web` |
355
-
| `width` | | | `web` |
352
+
By default, Radix renders the arrow as an `<svg>` element. You can customize the SVG arrow color by passing a `fill` prop, `className`, or `style` object with a `fill` property.
353
+
354
+
:::caution
355
+
356
+
Because the arrow is an `<svg>` element, its `style` prop is not React Native compatible. Styling it with React Native libraries may not work as expected. If you would like to render a custom styled `<View>`, use the `asChild` prop instead of wrapping this component.
If you're using an Expo Development Client, there are some additional steps:
32
32
33
33
```yarn
34
-
expo install expo-build-properites
34
+
npx expo install expo-build-properties
35
35
```
36
36
37
37
Next, add this to your app config's plugins array:
38
38
39
39
```js
40
40
exportdefault {
41
41
plugins: [
42
-
"expo-build-properties",
42
+
[
43
+
"expo-build-properties",
43
44
{
44
-
android: {
45
-
// these values were tested with Expo SDK 48
46
-
compileSdkVersion:33,
47
-
targetSdkVersion:33,
48
-
minSdkVersion:23,
49
-
buildToolsVersion:'33.0.0',
50
-
kotlinVersion:'1.6.20',
45
+
android: {
46
+
// these values were tested with Expo SDK 48
47
+
compileSdkVersion:33,
48
+
targetSdkVersion:33,
49
+
minSdkVersion:23,
50
+
buildToolsVersion:"33.0.0",
51
+
kotlinVersion:"1.6.20",
52
+
},
51
53
},
52
-
}
53
-
]
54
-
}
55
-
54
+
],
55
+
],
56
+
};
56
57
```
57
58
58
59
If you know your way around these, you may be able to adjust them. But if you get an error related to `react-native-menu` when building, please reference these properties.
@@ -78,7 +79,7 @@ To install your dev client on your iPhone, make sure it's plugged in to your Mac
78
79
After the development client build is complete, you can run your app in dev mode:
79
80
80
81
```bash
81
-
expo start --dev-client
82
+
npx expo start --dev-client
82
83
```
83
84
84
85
If your app is on the App Store, you'll need to deploy a new build too:
0 commit comments