Closed erbud closed 4 years ago
I've solved it by stopping use CustomActions
component. In iOS I used it to a try an example code…, but I really don't need it.
_renderActions(props) {
const { t } = this.props;
/*if (Platform.OS === 'ios') {
return (
<CustomActions {...props} />
);
}*/
const options = {
[t('source:stickers')]: (props) => {
this.showStickersMenu();
},
[t('source:imagesGallery')]: (props) => {
this.pickImage(props);
},
[t('source:takePicture')]: (props) => {
this.takePicture(props);
},
[t('common:cancel')]: () => {}
};
return (
<Actions {...props} options={options} />
);
};
Sorry for the false negative… (?)
i got problem when setAccessoryBar, can u help?
const renderAccessory = () => (
<AccessoryBar onSend={onSendFromUser} isTyping={setIsTyping} />
)
const onSendFromUser = (messages: IMessage[] = []) => {
const createdAt = new Date()
const messagesToUpload = messages.map(message => ({
...message,
user,
createdAt,
_id: Math.round(Math.random() * 1000000),
}))
this.onSend(messagesToUpload)
}
Issue Description
On render an screen (with React Navigagtion 4.x) thats contains a GiftedChat component, in iOS crashes the app, in Android not. You have not reproduced the incidence?
Steps to Reproduce / Code Snippets
Render a screen with React Navigation 4.x thats contains a GiftedChat component, i.e.:
Expected Results
Open the screen with the React-Native-Gifted-Chat interface normally.
Additional Information