This sample code demonstrates how to include a c++ audio fingerprinting function, in a react native project. Additionally a suggested method to record raw audio is provided for both iOS and Android.
For more details check my blog post. You may also want to learn more about dejavu project.
Note: The project will not run out of the box. You have to at least include OpenCV and make sure you have set NDK for Android.