Skip to content

Commit fb0f769

Browse files
author
jasuno
authored
docs: Added Expo's appearance suggestion (#586)
1 parent 4c8b9d6 commit fb0f769

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ If your project is using [Expo](https://expo.io/), install the library and the c
3636
expo install react-native-modal-datetime-picker @react-native-community/datetimepicker
3737
```
3838

39+
To ensure the picker theme respects the device theme, you should also configure the appearance styles in your `app.json` this way:
40+
41+
```json
42+
{
43+
"expo": {
44+
"userInterfaceStyle": "automatic"
45+
}
46+
}
47+
```
48+
49+
Refer to the [Appearance](https://docs.expo.io/versions/latest/sdk/appearance/) documentation on [Expo](https://expo.io/) for more info.
50+
3951
## Usage
4052

4153
```javascript

0 commit comments

Comments
 (0)