Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/docs/guides/GETTING_STARTED.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,40 @@ For react-native-worklets-core its necessary to add a plugin to your `babel.conf
cd ios && pod install
```

## Disable native logs

Native react-native-filament memory logs, such as `RNF/HybridObject` `Creating` and `Deleting`, are enabled by default. You can disable them with the following platform-specific settings:

<Tabs
groupId="rnfLogs"
defaultValue="ios"
values={[
{label: '🍏 iOS', value: 'ios'},
{label: '🤖 Android', value: 'android'}
]}>
<TabItem value="ios">
Add the following to your `ios/Podfile` before installing pods:

```ruby
$RNFEnableLogs = false
```

Rerun `pod install` after changing this setting.

</TabItem>

<TabItem value="android">
Add the following to your `android/gradle.properties`:

```properties
RNF_enableLogs=false
```

</TabItem>
</Tabs>

After changing either setting, rebuild the native app. Reloading Metro alone is not sufficient. This only affects native react-native-filament logs, not arbitrary application `console.log` output.

4. Start Metro with clean cache:

```sh
Expand Down