mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
docs: should be asBoolean instead of asNumber (#4023)
It has been used `asNumber` instead of `asBoolean` in the `resolves value to boolean` section. This can lead to confusion.
This commit is contained in:
@@ -111,7 +111,7 @@ if (awesomeNewFeature.asNumber() === 5) {
|
||||
// resolves value to boolean
|
||||
// if value is any of the following: '1', 'true', 't', 'yes', 'y', 'on', it will resolve to true
|
||||
// if source is 'static', value will be false
|
||||
if (awesomeNewFeature.asNumber() === true) {
|
||||
if (awesomeNewFeature.asBoolean() === true) {
|
||||
enableAwesomeNewFeature();
|
||||
}
|
||||
```
|
||||
@@ -168,4 +168,4 @@ You can also apply a global cache frequency by calling the `setConfigSettings` m
|
||||
await remoteConfig().setConfigSettings({
|
||||
minimumFetchIntervalMillis: 30000,
|
||||
});
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user