How to implement audio level meter for RTC Stream

I want to display a audio volume meter to visualize audio activity,
In web browser webrtc, It can be realized with AudioContext.
How can I implement this with react-native-webrtc, Does anyone have some ideas.

You can use getStats (the audio level is one of the stats) but note that calling it too often may have a signifficant performancwe impact.