react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

type error Property 'copilot' is missing in type

Open bananana0118 opened this issue 2 years ago • 5 comments

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.0
  • react-native: 0.70.5
  • react-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.

bbbb

bananana0118 avatar Mar 28 '23 07:03 bananana0118

same issue here

joaodias-rms avatar Mar 28 '23 18:03 joaodias-rms

I will look into this

mohebifar avatar Apr 13 '23 13:04 mohebifar

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

anabeatrizzz avatar May 27 '23 22:05 anabeatrizzz

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

UchennaOkafor avatar Feb 10 '24 21:02 UchennaOkafor

getting this too

alex-martino avatar Apr 11 '24 20:04 alex-martino