mohebifar / mohebifar/react-native-copilot
type error Property 'copilot' is missing in type
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Current Behavior
A clear and concise description of the behavior.
hi
I'm start this library,
I had a problem following the tutorial
it is just type error, but i want fix it
what do i need to fix?
const CopilotText = walkthroughable(View);
function CreateMeetingRoomButton() {
const styles = useStyles();
const goToCreateMeetingScreen = useGoToCreateMeetingScreen(
MeetingMode.create,
);
const { start } = useCopilot();
return (
<View style={styles.buttonContainer}>
<Button text="시작" onPress={() => start()} />
<CopilotStep text="this is a hello world example" order={1} name="hello">
<CopilotText testID="gg">
<IconButton
icon={{
iconName: 'add',
size: styles.buttonIcon.size,
color: styles.buttonIcon.color,
}}
onPress={goToCreateMeetingScreen}
style={styles.button}
/>
</CopilotText>
</CopilotStep>
</View>
);
}
Expected behavior/code
A clear and concise description of what you expected to happen (or code).
Environment
- Device: android emulator
- OS: window, vscode
react-native-copilot: 3.2.0react-native: 0.70.5react-native-svg:13.4.0
Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the tutorial example shown in the issue with react-native-copilot 3.2.0, React Native 0.70.5, and the displayed CopilotText usage. Start by inspecting the TypeScript type error for the walkthroughable component; done means the example compiles without the reported missing-property error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100