0

I am specifically interested in enhancing the Attachment Picker to include more functionality or changing its appearance based on my app's requirements. To provide a clearer understanding, I have attached a screenshot of an example menu that I would like to incorporate.

As a beginner, I am seeking guidance on how to approach this customization process. Are there any recommended methods or best practices for modifying the GetStream Attachment Picker component in React Native? How can I add the desired menu or modify the style using a different view or popup?

My main question is: Is it possible to customize the GetStream Attachment Picker component in React Native? If so, what are the available options and resources to achieve this customization? Are there any specific APIs or hooks provided by GetStream that can be utilized for this purpose?

I appreciate any assistance or suggestions on the feasibility and steps involved in customizing the GetStream Attachment Picker component within the React Native framework. Thank you!

Here is the original layout from Getstream.io. getstream-attachment

I am expecting to create a separate window for the attachment picker. So I can choose gallery, camera rolls, file, or another button to do something else. Here is the expected result of the menu.On the image, it has 3 menus. Let's say I am gonna create another menu called "Add new event". That is my expectation.

attachment

1 Answers1

0

while I won't be able to show you the exact way how to solve your problem, we have a few guides that will help you to get there.

First, here is the documentation on how to handle custom attachments in general for React Native. It gives you the example of location sharing but can be changed for (almost) any other form of attachment.

Second, on this page we describe how to replace the attachment picker with a native one. This one will be really relevant for you because you will want to replace the CustomAttachButton in the example with a custom one that contains your logic and use it to open up the menu you've described.

Please let me know if that helped you or if you have any other questions! :)

Stefan Blos
  • 172
  • 7