Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created October 22, 2024 14:20
Show Gist options
  • Save Klerith/32188b65b9c7329af759826136a0d403 to your computer and use it in GitHub Desktop.
Save Klerith/32188b65b9c7329af759826136a0d403 to your computer and use it in GitHub Desktop.
Estilos para la cámara en React Native
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
message: {
textAlign: 'center',
paddingBottom: 10,
},
camera: {
flex: 1,
},
buttonContainer: {
flex: 1,
flexDirection: 'row',
backgroundColor: 'transparent',
margin: 64,
},
button: {
flex: 1,
alignSelf: 'flex-end',
alignItems: 'center',
},
text: {
fontSize: 24,
fontWeight: 'bold',
color: 'white',
},
shutterButton: {
width: 64,
height: 64,
borderRadius: 32,
backgroundColor: 'white',
borderColor: 'red',
borderWidth: 4,
justifyContent: 'center',
alignItems: 'center',
},
flipCameraButton: {
width: 50,
height: 50,
borderRadius: 32,
backgroundColor: '#17202A',
position: 'absolute',
bottom: 40,
right: 32,
justifyContent: 'center',
alignItems: 'center',
},
galleryButton: {
width: 50,
height: 50,
borderRadius: 32,
backgroundColor: '#17202A',
position: 'absolute',
bottom: 40,
left: 32,
justifyContent: 'center',
alignItems: 'center',
},
returnCancelButton: {
width: 50,
height: 50,
borderRadius: 32,
backgroundColor: '#17202A',
position: 'absolute',
top: 40,
left: 32,
justifyContent: 'center',
alignItems: 'center',
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment