Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a loaded callback function? #58

Open
idoor88 opened this issue Nov 24, 2019 · 0 comments
Open

Is there a loaded callback function? #58

idoor88 opened this issue Nov 24, 2019 · 0 comments

Comments

@idoor88
Copy link

idoor88 commented Nov 24, 2019

Hi, I am using the waveform component, but sometimes it takes a while to load the sound file and show up the waveform on view, I like to put a loading spinner before it is loaded, after it is loaded then turn off the spinner, so is there a loaded callback function where I can turn off the loading spinner? my code looks like this:

`

               {audioFileURL.length!=0 && <WaveForm

                style={styles.waveform}

                onPress={this.changestate}

                source={{uri: audioFileURL}}

                stop={stopAudio}

                play={playAudio}

                autoPlay={true}

                waveFormStyle={{ waveColor: "lightsteelblue", scrubColor: "white" }}

              />}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant