![]() ![]() My issue is changing the 'document.querySelector' line in 'main.js'. Main.js import from 'react-native-svg' Ĭonst = useState() Ĭonst audioSound = require('./assets/hello_world.ogg') Ĭonsole.log('Error playing sound:', error) Ĭonst audioData = await getAudioData(file) Ĭonsole.log('Error retrieving audio data:', error) īackgroundColor: 'blue', // Adjust the color as per your preference So here's the short version of the working (Web) code: From the Repo index.html But if you want to check the entire repo, you can go here: Waveform Path I've stripped the repo code from all that is not necessary to be able to understand it better. My objective is to recreate it in React Native, but it's giving me errors, mainly because I don't seem to translate the animated part. I'm trying to convert some code from a GitHub repo that renders a waveform from a playing audio file, written in HTML and Javascript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |