Skip to content

Commit a49fd9b

Browse files
Update React Native documentation to choose DevRev or system preferred theme
1 parent 8abdbe5 commit a49fd9b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fern/docs/pages/sdks/mobile/react-native/features.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ For scenarios where custom handling is needed, links from the support chat can b
8686
DevRevSDK.setInAppLinkHandler((url) => {
8787
// Perform an action here.
8888
});
89+
```
90+
91+
## Dynamic theme configuration
92+
93+
The DevRev SDK allows you to configure the theme dynamically based on the system appearance, or use the theme configured on the DevRev portal. By default, the theme will be dynamic and follow the system appearance.
94+
95+
```swift
96+
DevRev.setPrefersSystemTheme(value: boolean)
8997
```
9098

9199
## Analytics

0 commit comments

Comments
 (0)