How to implement Coach mark in react native android? [closed]
Asked Answered
C

1

7

Its required to implement Coach mark or showcase in my React native app. After googling i didn't get any code or library which can get help that.

Can any one suggest me How can i achieve Coach mark in react native?

Example:

enter image description here

I dont want to overlay screen shot type image with transparency. Because it would be create problem when app run in landscape mode. And for this approach i need to keep All DPI images in respective folders.

I need proper and generic solution. Please help.

Conation answered 9/1, 2017 at 12:25 Comment(2)
hey did you find a solution ? i'm having troubles also to make this in my app and i couldn't find anything really useful .. Thank you :)Noto
@Noto I thinks this link can help you! github.com/TranLuongTuanAnh/react-native-coachmasksFive
M
7

There is a ready solution for this.

You can try the: React Native Joyride(npm install --save react-native-joyride)

You can find a full working solution here: https://github.com/okgrow/react-native-co-pilot

is as simple as this code:

import { joyride, joyridable, JoyrideStep } from 'react-native-joyride';

const JoyrideText = joyridable(Text);

class HomeScreen {
  render() {
    return (
      <View>
        <JoyrideStep text="This is a hello world example!" order={1} name="hello">
          <JoyrideText>Hello world!</JoyrideText>
        </JoyrideStep>
      </View>
    );
  }
}
Mutualize answered 28/11, 2017 at 16:2 Comment(1)
Thank you Tom! I feel like a dunce for not discovering that earlier, but better late than never!Jovian

© 2022 - 2024 — McMap. All rights reserved.