mohebifar / react-native-copilot

Step-by-step walkthrough tooltip for your react native app
MIT License
2.22k stars 406 forks source link

type error Property 'copilot' is missing in type #277

Open bananana0118 opened 1 year ago

bananana0118 commented 1 year ago

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

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

bbbb

joaodias-rms commented 1 year ago

same issue here

mohebifar commented 1 year ago

I will look into this

anabeatrizzz commented 1 year ago

I just added copilot={null} on <CopilotStep /> component and the error has gone.

UchennaOkafor commented 7 months ago

I am having this issue, how can I fix it?

alex-martino commented 5 months ago

getting this too