FIX: Flash icon height

This commit is contained in:
Marcos Rodriguez Velez 2024-09-06 18:59:58 -04:00
parent b8bc56d9ec
commit 8113bc9290
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ const styles = StyleSheet.create({
borderRadius: 20,
position: 'absolute',
left: 16,
top: 44,
top: 55,
},
closeImage: {
alignSelf: 'center',

View file

@ -18,7 +18,7 @@
renderTorchButton() {
- return (!this.isCaptureRetakeMode() && (<TouchableOpacity style={{ paddingHorizontal: 15 }} onPress={() => this.onSetTorch()}>
- <Image style={[{ flex: 1, justifyContent: 'center' }, this.props.torchImageStyle]} source={this.state.torchMode ? this.props.torchOnImage : this.props.torchOffImage} resizeMode="contain"/>
+ return (!this.isCaptureRetakeMode() && (<TouchableOpacity style={{ backgroundColor: '#FFFFFF', borderRadius: 20 }} onPress={() => this.onSetTorch()}>
+ return (!this.isCaptureRetakeMode() && (<TouchableOpacity style={{ backgroundColor: '#FFFFFF', borderRadius: 20, height: 40, marginHorizontal: 15 }} onPress={() => this.onSetTorch()}>
+ <Image style={[{ width: 40, height: 40, justifyContent: 'center' }, this.props.torchImageStyle]} source={this.state.torchMode ? this.props.torchOnImage : this.props.torchOffImage} resizeMode="contain"/>
</TouchableOpacity>));
}