@popp0102/nova 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,11 +4,6 @@ import { SafeAreaView } from "react-native-safe-area-context";
4
4
  import Button from "./Button";
5
5
 
6
6
  export default function Modal({ visible, title, onConfirm, onClose, children, includeFooter = true }) {
7
- function handleOnConfirm() {
8
- onConfirm();
9
- onClose();
10
- }
11
-
12
7
  return (
13
8
  <RNModal visible={visible} transparent={true} onRequestClose={onClose}>
14
9
  <SafeAreaView style={styles.backdrop}>
@@ -22,7 +17,7 @@ export default function Modal({ visible, title, onConfirm, onClose, children, in
22
17
  { includeFooter &&
23
18
  <View style={styles.footer}>
24
19
  <Button style={styles.button} onPress={onClose} type="secondary">Cancel</Button>
25
- <Button style={styles.button} onPress={handleOnConfirm}>Ok</Button>
20
+ <Button style={styles.button} onPress={onConfirm}>Ok</Button>
26
21
  </View>
27
22
  }
28
23
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popp0102/nova",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "React Native component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",