-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Need copilot step for multiple element on custom component #304
Comments
I just found out you can do something like this: import React from 'react';
import {View} from 'react-native';
const CustomCopilotView = (props: {children: JSX.Element; copilot?: any}) => {
return <View {...props.copilot}>{props.children}</View>;
};
export default CustomCopilotView; Just wrap your custom component into this CustomCopilotView inside of a step! |
@laurensk what to pass in |
Here is a usage example: <CopilotStep
order={1}
name="step1"
text="This is the text for the step.">
<CustomCopilotView>
// Your component goes here...
</CustomCopilotView>
</CopilotStep> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to implement copilot for components for multiple UI?
The text was updated successfully, but these errors were encountered: