React Native : RingtonesLibrary
How to use RingtonesLibrary for android app in React Native

I was frustrated that the RingtoneManager for React Native on GitHub was not working at all. I decided to implement it and published a package on npm.
I use VSCode, in order to use it you must type in a terminal :
npm i react-native-ringtones-library
In your project, import the library as this:
import RingtonesLibrary from ‘react-native-ringtones-library’
Then you can seek for your ringtones like this:
RingtonesLibrary.getRingsByType(RingtonesLibrary.TYPE_RINGTONE, data => {this.setState({list:data})});
There are four TYPE you can use:
TYPE_RINGTONE
TYPE_ALARM
TYPE_NOTIFICATION
TYPE_ALL
You can put the results into a FlatList like that:

Notice that an item looks like:
{“ALBUM”: “ringtones”, “ARTIST”: “<unknown>”, “BITRATE”: 0, “KEY”: 0, “NOTIFICATION”: “/system/media/audio/ringtones/ANDROMEDA.ogg”, “NOTIFICATION_URI”: “content://media/internal/audio/media/103”, “SAMPLERATE”: 44100, “TITLE”: “Andromeda”, “TYPE”: 1, “URI”: “/system/media/audio/ringtones/ANDROMEDA.ogg”}
BITRATE AND SAMPLERATE are not well implemented yet, you can use URI to play the sound with react-native-sound.