Cannot Show Walkthrough for Header components via React Navigation
See original GitHub issueI am using react navigation
library to manage navigation within my app.I am using this library to enable first time users to get to know the different features of my app.When i try to Wrap a Text
element with a CoPilot
Step in thestatic navOptions
sections(In react-Navigation
,this allows the user to customise the header shown on the top of the screen) it gives me an error saying that undefined is not an object(evaluationg this.context._getCurrentStep.)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Configuring the header bar - React Navigation
Using params in the title. In order to use params in the title, we need to make options prop for the screen a...
Read more >Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >Configuring the header bar - React Navigation
Setting the header title. A screen component can have a static property called navigationOptions which is either an object or a function that...
Read more >Header buttons | React Navigation
In some cases, components in the header need to interact with the screen component. For this use case, we need to use navigation.setOptions...
Read more >Common mistakes - React Navigation
Most apps should only ever render one navigator inside of a React component, and this is usually somewhere near the root component of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ptgamr I solved this by using an empty view with position absolute. It doesn’t matter that it’s not wrapping around the actual component as the highlighted area within a tour is not functional/touchable anyway.
const WalkthroughableView = walkthroughable(View);
@mohebifar What’s your recommendation to focus to a button in
react-navigation
header ? Something likeNotice that
headerRight
is not render as children ofHomeScreen
… but it will render withinreact-navigation
context