-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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
Labels
No labels