Skip to content

[EPIC] Feedback Widget for React Native #4302

Description

@krystofwoldrich

Sentry currently offers only Feedback API for React Native applications and the widget to collect feedback needs to be implemented by the app developers. The goal of this task is to provide pre-made widget, which can be directly used in React Native applications.

Current browser widget docs.
Current React Native Feedback api docs.
Example React Native implementation in Sentry Demo app

Tasks Overview

Feature Branch /feedback-ui

Feature Branch /feedback-ui-2

Currently in progress for GA release

GA tasks

Post GA Features

Done

Activity

  1. changed the title [-]Feedback Widget for React Native[/-] [+][EPIC] Feedback Widget for React Native[/+] on Jan 24, 2025
  2. krystofwoldrich commented on Jan 30, 2025

    @krystofwoldrich
    ContributorAuthor

    Disable movement/scroll (example in the video below) (allow only in overflow)

    Happens only on iOS

    Simulator.Screen.Recording.-.iPhone.16.-.2025-01-29.at.16.24.52.mp4
  3. krystofwoldrich commented on Jan 30, 2025

    @krystofwoldrich
    ContributorAuthor

    Add rounded corners and the appearance of a sheet with a darkened top. See the example below.

    Let's do this if possible just with styles.

    Let's do this for both Android (can be different than iOS, but since Android is diverse we won't be able to match all versions) and iOS (the radius should match the native views) (and Web).

    Image
  4. krystofwoldrich commented on Feb 10, 2025

    @krystofwoldrich
    ContributorAuthor

    The two most popular libraries for image pickers in the RN ecosystem are https://www.npmjs.com/package/react-native-image-picker and https://www.npmjs.com/package/expo-image-picker.

    Instead of guiding users on how to use the image picker libraries and how to hook them into the Sentry Feedback Widget, we could introduce a simpler interface, in which the Sentry Feedback Widget accepts the library object and calls it's APIs.

    Example:

    React Native Image Picker

    import * as ImagePicker from 'react-native-image-picker';
    
    Sentry.init({
      integrations: [
        Sentry.feedbackIntegration({
          imagePicker: ImagePicker,
        }),
      ],
    });

    Expo Image Picker

    import * as ImagePicker from 'expo-image-picker';
    
    Sentry.init({
      integrations: [
        Sentry.feedbackIntegration({
          imagePicker: ImagePicker,
        }),
      ],
    });
  5. antonis commented on Feb 14, 2025

    @antonis
    Contributor

    Note: We also need to check if (similar to iOS) the permissions needed for accessing photos create complications.

  6. krystofwoldrich commented on Feb 14, 2025

    @krystofwoldrich
    ContributorAuthor

    Note: We also need to check if (getsentry/sentry-cocoa#4801) the permissions needed for accessing photos create complications.

    This is not an issue for the RN SDK, because we don't access any of the native API, but the image picker libraries we integrate with do.

  7. krystofwoldrich commented on Feb 14, 2025

    @krystofwoldrich
    ContributorAuthor

    I noticed two bugs on Expo Web.

    The inputs immediately lose focus after clicking on them.


    The image picker on web returns data:, uri.

    It would be nice to support it on the Web, we can use the browser APIs to convert the base64 to UintArray, the rest of the form works perfectly.

    Image
  8. antonis commented on Feb 17, 2025

    @antonis
    Contributor

    Note: We also need to check if (getsentry/sentry-cocoa#4801) the permissions needed for accessing photos create complications.

    This is not an issue for the RN SDK, because we don't access any of the native API, but the image picker libraries we integrate with do.

    Makes sense 👍 Probably we can add a note in the documentation as a reminder on this.

    I noticed two bugs on Expo Web.

    Thank you for reporting @krystofwoldrich 🙇 I'll iterate with a fix on those 🤞

  9. antonis commented on Feb 21, 2025

    @antonis
    Contributor

    Reopening to track down the tasks after the beta release.

  10. 4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions