mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 20:49:36 +01:00
add animation to base dialog
This commit is contained in:
@@ -51,10 +51,8 @@ const BaseDialog = ({
|
|||||||
<KeyboardAvoidingView
|
<KeyboardAvoidingView
|
||||||
enabled={!floating && Platform.OS === 'ios'}
|
enabled={!floating && Platform.OS === 'ios'}
|
||||||
behavior="padding">
|
behavior="padding">
|
||||||
|
|
||||||
|
|
||||||
<BouncingView
|
<BouncingView
|
||||||
duration={400}
|
duration={400}
|
||||||
style={[
|
style={[
|
||||||
styles.backdrop,
|
styles.backdrop,
|
||||||
{
|
{
|
||||||
@@ -65,11 +63,11 @@ const BaseDialog = ({
|
|||||||
: 'flex-start'
|
: 'flex-start'
|
||||||
}
|
}
|
||||||
]}>
|
]}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={onRequestClose}
|
onPress={onRequestClose}
|
||||||
style={styles.overlayButton}
|
style={styles.overlayButton}
|
||||||
/>
|
/>
|
||||||
{premium}
|
{premium}
|
||||||
{children}
|
{children}
|
||||||
</BouncingView>
|
</BouncingView>
|
||||||
</KeyboardAvoidingView>
|
</KeyboardAvoidingView>
|
||||||
@@ -88,7 +86,7 @@ const styles = StyleSheet.create({
|
|||||||
overlayButton: {
|
overlayButton: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
position: 'absolute',
|
position: 'absolute'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const DialogContainer = ({width, height, ...restProps}) => {
|
|||||||
{...restProps}
|
{...restProps}
|
||||||
style={{
|
style={{
|
||||||
...getElevation(5),
|
...getElevation(5),
|
||||||
width: width || DDS.isTab ? 400 : '85%',
|
width: width || DDS.isTab ? 500 : '85%',
|
||||||
maxHeight: height || 450,
|
maxHeight: height || 450,
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
backgroundColor: colors.bg,
|
backgroundColor: colors.bg,
|
||||||
|
|||||||
Reference in New Issue
Block a user