Skip to content

Commit cd5bdf9

Browse files
committed
Update React Native README links
1 parent 1bdd5d5 commit cd5bdf9

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

packages/react-native-sdk/README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
A thin React Native wrapper around `@reflag/react-sdk`.
44

5-
For more usage details, see the React SDK README in `packages/react-sdk/README.md`.
5+
For more usage details, see the [React SDK README](../react-sdk/README.md).
66

7-
An Expo example app lives at `packages/react-native-sdk/dev/expo`.
7+
An Expo example app lives in [packages/react-native-sdk/dev/expo](https://github.com/reflagcom/javascript/tree/main/packages/react-native-sdk/dev/expo).
88

99
## Install
1010

@@ -28,14 +28,19 @@ import { ReflagProvider, useFlag } from "@reflag/react-native-sdk";
2828
</ReflagProvider>;
2929
```
3030

31-
See the React SDK README in `packages/react-sdk/README.md` for more details.
31+
See the [React SDK README](../react-sdk/README.md) for more details.
32+
33+
## React Native differences
34+
35+
- The Reflag toolbar is web-only and is not available in React Native.
36+
- Built-in feedback UI is web-only. In React Native, use your own UI and call `useSendFeedback` or `client.feedback` when you're ready to send feedback.
3237

3338
## Cookbook
3439

3540
### Refresh flags when the app returns to the foreground
3641

37-
Flags are updated if the context passed to <ReflagProvider> changes, but you might also want to update them in when the app comes to the foreground.
38-
See this snipped on how to achieve that:
42+
Flags are updated if the context passed to `<ReflagProvider>` changes, but you might also want to update them when the app comes to the foreground.
43+
See this snippet:
3944

4045
```tsx
4146
import React, { useEffect, useRef } from "react";
@@ -72,3 +77,8 @@ export function App() {
7277
);
7378
}
7479
```
80+
81+
## Bootstrapping
82+
83+
You can use `<ReflagBootstrappedProvider>` in React Native when you already have pre-fetched flags and want to avoid an initial fetch.
84+
For bootstrap usage patterns and options, see the [React SDK bootstrapping docs](../react-sdk/README.md#server-side-rendering-and-bootstrapping).

0 commit comments

Comments
 (0)