Skip to content

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jan 10, 2025
1 parent 30eefbc commit 0df3aa2
Showing 2 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cpk-ui",
"version": "0.1.4",
"version": "0.1.5",
"main": "index",
"react-native": "index",
"module": "index",
51 changes: 27 additions & 24 deletions src/components/modals/AlertDialog/AlertDialog.tsx
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import {
Platform,
StyleSheet,
TouchableWithoutFeedback,
View,
} from 'react-native';
import styled, {css} from '@emotion/native';
import {useTheme} from '../../../providers/ThemeProvider';
@@ -163,31 +164,33 @@ function AlertDialog(
);

return (
<Modal
animationType="fade"
style={[
css`
flex: 1;
align-self: stretch;
`,
style,
]}
transparent={true}
visible={visible}
>
{closeOnTouchOutside ? (
<TouchableWithoutFeedback
onPress={() => setVisible(false)}
style={css`
<View>
<Modal
animationType="fade"
style={[
css`
flex: 1;
`}
>
{AlertDialogContent}
</TouchableWithoutFeedback>
) : (
AlertDialogContent
)}
</Modal>
align-self: stretch;
`,
style,
]}
transparent={true}
visible={visible}
>
{closeOnTouchOutside ? (
<TouchableWithoutFeedback
onPress={() => setVisible(false)}
style={css`
flex: 1;
`}
>
{AlertDialogContent}
</TouchableWithoutFeedback>
) : (
AlertDialogContent
)}
</Modal>
</View>
);
}

0 comments on commit 0df3aa2

Please sign in to comment.