mohebifar / mohebifar/react-native-copilot

Can I use a CopilotStep inside a map Item

Open
#153 2 comments 1 reaction 0 assignees View on GitHub

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.

I have an item which is part of my next step that resides inside a map. What I need to do is highlight one of the first items to describe it's purpose. Does anyone have experience doing this?
Input Code

`<View style={{ flex: 1 }}>
              {this.props.foods.map((item, i) => (

                <Accordion title={item.name} data={item} value={false} key={item.id} number={i} />
              ))}
            </View>`

Expected behavior/code

For my step 2 I need this to happen inside a mapped Component. For example inside item 1.

Environment

  • "react-native-copilot": "^2.4.6",
  • "expo": "^35.0.0",
  • "react-native-svg": "~9.9.2",

Additional context/Screenshots
Below is a screenshot of the items list I need to be highlighted as step 2.

Screenshot_20191004_121155_host exp exponent

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the mapped Accordion example from the issue with react-native-copilot 2.4.6 and Expo 35. Inspect how the CopilotStep is expected to wrap an item rendered by foods.map. Done means a mapped item can be highlighted reliably as step 2, with behavior confirmed in the example or a focused test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.