Skip to content

scratch card already show scratch issue #18

@android0code

Description

@android0code

I have used the scratch card in react-native modal
The first time it worked fine, but when I opened 2nd time it displayed already scratch card.
For iOS also works fine, the only issue for android
my code:

        <ScratchCard
          source={require("../assets/background/maker_studio_back.png")}
          brushWidth={50}
          onScratch={(event) => onHandleScratch(event)}
          style={styles.scratch_card}
        />
      </View>

const styles = StyleSheet.create({
container: {
alignItems: "center",
justifyContent: "center",
borderRadius: 16,
},
background_view: {
position: "absolute",
width: Platform.isPad ? hp(35) : hp(30),
height: Platform.isPad ? hp(35) : hp(30),
backgroundColor: "transparent",
alignSelf: "center",
borderRadius: 16,
},
scratch_card: {
width: Platform.isPad ? hp(35) : hp(30),
height: Platform.isPad ? hp(35) : hp(30),
backgroundColor: "transparent",
},
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions