-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FF-react #5164
FF-react #5164
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
{% tab React Native %} | ||
```javascript | ||
// string properties | ||
const stringProperty = await braze.getFeatureFlagStringProperty("color"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property methods are supposed to take in two params: ("flag-id", "property-key");
const stringProperty = await braze.getFeatureFlagStringProperty("color"); | |
const stringProperty = await braze.getFeatureFlagStringProperty("my_flag", "color"); |
Co-authored-by: Jeriel Ng <jerielng@users.noreply.github.com>
@@ -138,6 +138,16 @@ if (featureFlag.enabled) { | |||
} | |||
``` | |||
{% endtab %} | |||
{% tab React Native %} | |||
```javascript | |||
const featureFlag = await braze.getFeatureFlag("expanded_user_profile"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding your note about Braze
vs braze
, I know in the sample app we have it as Braze
, but I'm not sure if that's a TS convention. If it were Swift, we would lowercase it unless it was a static reference. @wesleyorbin do you have any thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, in theory it could be:
import David from "braze-react-native-sdk"
So probably doesn't matter that much, but i'll change it to Braze
to match the sample app.
Co-authored-by: Jeriel Ng <jerielng@users.noreply.github.com>
Co-authored-by: Jeriel Ng <jerielng@users.noreply.github.com>
code samples for react FF