-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressable becomes full screen when inside BlurView on Android #616
Comments
Hey @mohshbool Wrap the Example CodeHere’s an example implementation: import React from 'react';
import {Dimensions, StyleSheet, View, TouchableOpacity, Pressable, Text} from 'react-native';
import {BlurView} from '@react-native-community/blur';
const Component = () => {
return (
<BlurView style={styles.container}>
<TouchableOpacity activeOpacity={1} style={{flex: 1}}>
<Pressable onPress={unlock} style={styles.buttonContainer}>
<Text style={styles.buttonText}>UNLOCK</Text>
</Pressable>
</TouchableOpacity>
</BlurView>
);
};
const styles = StyleSheet.create({
container: {
position: 'absolute',
zIndex: 1,
width: '100%',
height: Dimensions.get('window').height * 0.92,
justifyContent: 'flex-end',
paddingHorizontal: 25,
},
buttonContainer: {
marginBottom: 20,
},
buttonText: {
fontSize: 15,
color: 'white',
},
});
export default Component; Explanation
By wrapping |
Still doesn't work. |
This is happens only on Android, all versions. This problem disappears if I change styling in the code and refreshing. Problem stays away even after i undo the change even if it was irrelevant to the component.
Environment:
Scenario:
Screenshot of the code above from android:
The text was updated successfully, but these errors were encountered: