update pop-up dialog box UI
This commit is contained in:
parent
ace334b431
commit
54bf7fa523
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"postman.settings.dotenv-detection-notification-visibility": false
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -797,29 +797,29 @@ const customAlert = function (props) {
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: theme?.theme.dark ? theme.theme.colors.border : 'white',
|
backgroundColor: theme?.theme.dark ? theme.theme.colors.border : 'white',
|
||||||
zIndex: 10,
|
zIndex: 10,
|
||||||
borderRadius: 10,
|
borderRadius: 20,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
height: 500
|
height: 500
|
||||||
}}>
|
}}>
|
||||||
|
|
||||||
{/* Image in the top half */}
|
<View style={{ height: 250, width: '100%' }}>
|
||||||
<View style={{ flex: 1 }}>
|
|
||||||
<Image
|
<Image
|
||||||
source={Assets.bg.modal_bg}
|
source={Assets.bg.modal_bg}
|
||||||
style={{
|
style={{
|
||||||
height: '100%',
|
height: '100%',
|
||||||
resizeMode: 'contain',
|
width: '100%',
|
||||||
|
resizeMode: 'cover',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* Text in the bottom half */}
|
|
||||||
<View style={{
|
<View style={{
|
||||||
// flex: 1,
|
height: 250,
|
||||||
justifyContent: 'center',
|
justifyContent: 'space-around',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
paddingHorizontal: 15,
|
paddingHorizontal: 15,
|
||||||
|
width: '100%',
|
||||||
}}>
|
}}>
|
||||||
{
|
{
|
||||||
children ?
|
children ?
|
||||||
|
@ -840,8 +840,11 @@ const customAlert = function (props) {
|
||||||
color: theme?.theme.dark ? theme?.theme.colors.text : "black",
|
color: theme?.theme.dark ? theme?.theme.colors.text : "black",
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
marginBottom: 35
|
marginBottom: 35,
|
||||||
}}>
|
marginHorizontal: 5,
|
||||||
|
}} numberOfLines={5}
|
||||||
|
adjustsFontSizeToFit>
|
||||||
|
|
||||||
{body}
|
{body}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
@ -856,7 +859,7 @@ const customAlert = function (props) {
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
paddingVertical: 6,
|
paddingVertical: 6,
|
||||||
marginRight: 6,
|
marginRight: 6,
|
||||||
borderRadius: 5
|
borderRadius: 20
|
||||||
}}>
|
}}>
|
||||||
<Text style={{ fontWeight: 'bold', color: Theme.colors.primary, fontSize: 17 }}>
|
<Text style={{ fontWeight: 'bold', color: Theme.colors.primary, fontSize: 17 }}>
|
||||||
{noText ? noText : "Cancel"}
|
{noText ? noText : "Cancel"}
|
||||||
|
@ -872,7 +875,7 @@ const customAlert = function (props) {
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
paddingVertical: 6,
|
paddingVertical: 6,
|
||||||
marginLeft: 6,
|
marginLeft: 6,
|
||||||
borderRadius: 5
|
borderRadius: 20
|
||||||
}}>
|
}}>
|
||||||
<Text style={{ fontWeight: 'bold', color: 'white', fontSize: 17 }}>
|
<Text style={{ fontWeight: 'bold', color: 'white', fontSize: 17 }}>
|
||||||
{yesText ? yesText : "Yes"}
|
{yesText ? yesText : "Yes"}
|
||||||
|
|
|
@ -187,7 +187,7 @@ class About extends React.PureComponent {
|
||||||
if (account.data.card_number == this.state.data?.card_number) return null;
|
if (account.data.card_number == this.state.data?.card_number) return null;
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity onPress={() => this.switchAccount(account, index)}>
|
<TouchableOpacity onPress={() => this.switchAccount(account, index)}>
|
||||||
<View style={{flexDirection: 'row', padding: 20, marginBottom: 15}}>
|
<View key={index} style={{flexDirection: 'row', padding: 20, marginBottom: 15}}>
|
||||||
<View>
|
<View>
|
||||||
<NBImage
|
<NBImage
|
||||||
style={{height: 50, width: 50, marginRight: 10, borderRadius: 25}}
|
style={{height: 50, width: 50, marginRight: 10, borderRadius: 25}}
|
||||||
|
|
Loading…
Reference in New Issue