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

About Props of ChatScreen #53

Closed
rising32 opened this issue Jan 3, 2020 · 1 comment
Closed

About Props of ChatScreen #53

rising32 opened this issue Jan 3, 2020 · 1 comment

Comments

@rising32
Copy link

rising32 commented Jan 3, 2020

There are many props in your module...
<ChatScreen
ref={e => (this.chat = e)}
CustomImageComponent={FastImage}
messageList={this.state.messages}
sendMessage={this.sendMessage}
// chatBackgroundImage={this.state.chatBg}
inverted={this.state.inverted}
panelSource={this.state.panelSource}
renderPanelRow={this.renderPanelRow}
onMessagePress={this.onPress}
voiceLoading={this.state.voiceLoading}
voicePlaying={this.state.voicePlaying}
audioPath={this.state.audioPath}
audioHasPermission={this.state.hasPermission}
requestAndroidPermission={this._requestAndroidPermission}
audioOnProgress={this.audioProgress}
audioOnFinish={this.audioFinish}
audioInitPath={this.initPath}
audioRecord={this._record}
audioStopRecord={this._stop}
audioCurrentTime={15}
audioHandle={this.state.audioHandle}
setAudioHandle={this.setAudioHandle}
voiceVolume={this.state.voiceVolume}
/>
I built my project with your package, then I can observe as followings...

executed order audioOnProgress -> audioOnFinish -> audioRecord -> audioStopRecord...
I think 'audioOnFinish ' have to execute at the end...
Please tell me about your opinion....

image

@DaiYz
Copy link
Owner

DaiYz commented Jan 5, 2020

Please provide your code about audio recording

@DaiYz DaiYz closed this as completed Feb 27, 2020
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

2 participants