Skip to content

Crash on image upload - Missing request token on react-native 0.63 #241

@plotic

Description

@plotic

Describe the bug
Crash on image upload

Dev environment info (please complete/provide the following information):

  • Package version (stream-chat-react-native)
  • react-native
  • Device/Emulator - ios
  • stream version 0.13.1

To Reproduce
Steps to reproduce the behavior:

       const promises = [
           channel.sendImage(
               imageUri          
           )            
       ];
       const results = await Promise.all(promises);
   
       const attachments = results.map(response => {
           return {
               type: 'image',
               thumb_url: response.file,
               asset_url: response.file,
           };
       });
       
       const response = await channel.sendMessage({
           text: text,
           attachments,
       });

Expected behavior
Upload works without crashing

Additional context
User token initialisation using - chat.devToken()

Screenshots
Simulator Screen Shot - iPhone 11 - 2020-07-16 at 11 26 58

gz#4473

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions