Add unstable_enableLogBox() by MoOx · Pull Request #692 · rescript-react-native/rescript-react-native
Expand Up
@@ -13,6 +13,8 @@ This is the development flag known in JavaScript as just
You can use it like this:
```reason open ReactNative;
let environmentText = if (Global.__DEV__) { "This is development" } Expand All @@ -21,6 +23,19 @@ else { } ```
## `Global.unstable_enableLogBox``
Enable React Native unstable [LogBox](https://reactnative.dev/blog/2020/03/26/version-0.62#other-improvements)
```reason open ReactNative;
if (Global.__DEV__) { unstable_enableLogBox(); }; ```
## `Global.hermesInternal`
This is the `HermesInternal` value known in JavaScript as Expand All @@ -29,5 +44,7 @@ This is the `HermesInternal` value known in JavaScript as You can use it like this:
```reason open ReactNative;
let isHermes = () => Global.hermesInternal != None; ```
```reason open ReactNative;
let environmentText = if (Global.__DEV__) { "This is development" } Expand All @@ -21,6 +23,19 @@ else { } ```
## `Global.unstable_enableLogBox``
Enable React Native unstable [LogBox](https://reactnative.dev/blog/2020/03/26/version-0.62#other-improvements)
```reason open ReactNative;
if (Global.__DEV__) { unstable_enableLogBox(); }; ```
## `Global.hermesInternal`
This is the `HermesInternal` value known in JavaScript as Expand All @@ -29,5 +44,7 @@ This is the `HermesInternal` value known in JavaScript as You can use it like this:
```reason open ReactNative;
let isHermes = () => Global.hermesInternal != None; ```