Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design issue #77

Open
jaydips2020 opened this issue Oct 18, 2021 · 5 comments
Open

Design issue #77

jaydips2020 opened this issue Oct 18, 2021 · 5 comments

Comments

@jaydips2020
Copy link

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
Copy link

PierroD commented Oct 25, 2021

There is 2 ways to fix it :

  • official one :
    (using the latest version)

add androidStatusBarVisible={true} to your TourGuideProvider

        <TourGuideProvider androidStatusBarVisible={true}>
          ...
        </TourGuideProvider>
  • unofficial one :

go to node_modules\rn-tourguide\lib\components\Modal.js
And comment those lines :

      if (!this.props.androidStatusBarVisible && Platform.OS === 'android') {
        obj.top -= StatusBar.currentHeight || 30;
      }

@jaydips2020
Copy link
Author

jaydips2020 commented Oct 26, 2021

@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
Copy link
Contributor

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

@rchavik
Copy link

rchavik commented Jan 4, 2022

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants