react-native-tour icon indicating copy to clipboard operation
react-native-tour copied to clipboard

Cannot read property "onLayout" of undefined error

Open jakesorce opened this issue 5 years ago • 2 comments
trafficstars

Screen Shot 2020-04-08 at 1 42 45 PM Screen Shot 2020-04-08 at 1 43 58 PM

jakesorce avatar Apr 08 '20 19:04 jakesorce

Do I have to make sure the component is wrapped in the consumer before I can <Attach>?

jakesorce avatar Apr 08 '20 21:04 jakesorce

Are you sure you have

import { Tour } from 'react-native-tour';

<Tour steps={steps}>
  <Navigation />
</Tour>;

the Tour component must be around everything. This is the provider that allows the consumer to work properly inside of Attach

zackify avatar Apr 08 '20 21:04 zackify