xcarpentier / rn-tourguide

🚩Make an interactive step by step tour guide for your react-native app (a rewrite of react-native-copilot)
https://xcarpentier.github.io/rn-tourguide/
Other
725 stars 213 forks source link

Design issue #77

Open jaydips2020 opened 2 years ago

jaydips2020 commented 2 years ago

I am getting issue with design like this image image

i will set tourguide at first textbox but it showing bottom side. not getting proper design.

anyone can have solution?

Code:

 <TourGuideProvider androidStatusBarVisible>
      <CreateSignatureContent props={props} />
    </TourGuideProvider>

content zone like this:

<TourGuideZone
                zone={1}
                shape="rectangle"
                text="Signed by show in top of the signature to identify name"
              >
.............//// stuff
</TourGuideZone>
PierroD commented 2 years ago

There is 2 ways to fix it :

jaydips2020 commented 2 years ago

@PierroD In my case its did't work proper. Already i used official way but its not working. and going through the unofficial way its not working.

bucketclan commented 2 years ago

@jaydips2020 Does the example app not work for you? Any repo steps for the issue you are facing?

rchavik commented 2 years ago

@jaydips2020 how about using the following?

import { initialWindowMetrics } from 'react-native-safe-area-context';

const App = (props) => (
  <TourGuideProvider
    verticalOffset={ Platform.OS == 'web' ? 0 : initialWindowMetrics?.insets.top }
    ...
   />
)
shreyasg-git commented 1 year ago

had a similar issue - In my case I had misplaced the <TourGuideProvider/> moving it to the top level fixed the issue for me.