mohebifar / mohebifar/react-native-copilot
Need copilot step for multiple element on custom component
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
From the documentation , we can add copilot step for custom components like :
import { copilot, CopilotStep } from 'react-native-copilot';
const CustomComponent = ({ copilot }) => <View {...copilot}><Text>Hello world!</Text></View>;
class HomeScreen {
render() {
return (
<View>
<CopilotStep text="This is a hello world example!" order={1} name="hello">
<CustomComponent />
</CopilotStep>
</View>
);
}
}
but what if My custom component is :
const CustomComponent = ({ copilot }) => <View {...copilot}><Text>Hello world!</Text><View {...copilot2}>some view</View></View>;
so how should I implement copilot2 here ?
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
Start with the documented custom-component CopilotStep example and inspect how a single copilot prop is applied. Determine the intended behavior for multiple elements and document or support the copilot2 case, with a reproducible example showing that both walkthrough targets work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100