sweatco / rn-scratch-card

React Native Scratch Card which temporarily hides content from user
MIT License
85 stars 13 forks source link

scratch card already show scratch issue #18

Open android0code opened 7 months ago

android0code commented 7 months ago

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:

onHandleScratch(event)} style={styles.scratch_card} />

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", }, });

avegrv commented 6 months ago

@android0code Thank you for mentioning. Please update to 1.2.2. It should be fixed.