FIX: provide entropy for D20

This commit is contained in:
Ivan Vershigora 2020-07-01 18:46:19 +03:00 committed by Overtorment
parent e6b1b9c7a3
commit e09aac4b07

View File

@ -101,15 +101,11 @@ export const convertToBuffer = ({ entropy, bits }) => {
const Coin = ({ push }) => (
<View style={styles.coinRoot}>
<TouchableOpacity onPress={() => push(getEntropy(0, 2))}>
<View style={styles.coinBody}>
<Image style={styles.coinImage} source={require('../../img/coin1.png')} />
</View>
<TouchableOpacity onPress={() => push(getEntropy(0, 2))} style={styles.coinBody}>
<Image style={styles.coinImage} source={require('../../img/coin1.png')} />
</TouchableOpacity>
<TouchableOpacity onPress={() => push(getEntropy(1, 2))}>
<View style={styles.coinBody}>
<Image style={styles.coinImage} source={require('../../img/coin2.png')} />
</View>
<TouchableOpacity onPress={() => push(getEntropy(1, 2))} style={styles.coinBody}>
<Image style={styles.coinImage} source={require('../../img/coin2.png')} />
</TouchableOpacity>
</View>
);
@ -299,10 +295,13 @@ const styles = StyleSheet.create({
borderRadius: 5,
borderColor: 'grey',
margin: 10,
padding: 10,
},
coinImage: {
flex: 0.9,
aspectRatio: 1,
width: '100%',
height: '100%',
borderRadius: 75,
},
diceScroll: {
backgroundColor: 'white',