surveysparrow / surveysparrow-react-native-sdk

SurveySparrow React Native SDK enables you to collect feedback from your mobile app. Embed the Classic, Chat & NPS surveys in your React Native application seamlessly with few lines of code.
MIT License
6 stars 2 forks source link

embeeded survey is not showing up in android #6

Closed Saad-Bashar closed 2 years ago

Saad-Bashar commented 2 years ago

Embedded SurveySparrow component comes fine in iOS but on android, it is just plain white, and nothing loads.

hemanath-ss commented 2 years ago

@Saad-Bashar , Can you share more details about this along with the code and output with us?. So it will be easier for us to check it out and get back to you!

Saad-Bashar commented 2 years ago

Screenshot 2021-12-08 at 12 41 02 PM Here is the snippet which is working fine for iOS but on android nothing loads, I mean the survey does not show up.

sachin-kumar56 commented 2 years ago

@Saad-Bashar do you get any error in metro when loading in android ?

sachin-kumar56 commented 2 years ago

@Saad-Bashar can you add style props to the SurveySparrow component with the height and width that you want that will fix this issue for example :

    <SurveySparrow
          styles={{
            width: '100%',
            height: 500,
          }}
          config={{
            domain: 'socarmy.surveysparrow.com',
            token: 'tt-446ec5',
            surveyType: 'classic',
          }}
          onSurveyComplete={data => {
            console.log('survey response from embed survey is', data);
          }}
    />
Saad-Bashar commented 2 years ago

No error :( I tried to set the styling as well but still the same.

Saad-Bashar commented 2 years ago

Hey I just tried again with styles and its working! Thanks!