Skip to content

Conversation

@khushal87
Copy link
Member

🎯 Goal

🛠 Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

🧪 Testing

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

handleReaction,
handleRetry,
handleThreadReply,
hasCameraPicker = takePhoto !== null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a pretty dangerous check takePhoto !== null as it relies on implementation details that may change in the future without us knowing about their side-effects. Can't we just export a new variable isCameraPickerAvailable (or something similar) instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a common pattern for all optional dependencies, I think we should make this change everywhere.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed it, though not from the native-package dir, but it's handled in the native.ts file of the core that exposes functions and then within the code the functions are used to check the availability of the package.

@khushal87 khushal87 merged commit d6788b8 into v6.0.0 Jul 10, 2024
@khushal87 khushal87 deleted the PBE-5070-rn-image-picker branch July 10, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants