Console logging doesn't exist for react-native

I use Sentry for react-native project. I want to set it up to capture console warnings and errors. I found docs how I can implement it. But CaptureConsole is not defined and it doesn’t exist in sentry node module folder. There is bug report on github but there wasn’t any reaction since 8 May 2020.
So how can I implement console capturing for react-native?