@momo-kits/foundation 0.81.20 → 0.81.22

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.
@@ -117,7 +117,7 @@ export interface ModalParams extends ScreenParams {
117
117
  export interface BottomSheetParams extends ScreenParams {
118
118
  [key: string]: any;
119
119
  onDismiss?: () => void;
120
- snapPoint?: '30%' | '50%' | '70%' | '90%';
120
+ snapPoint?: '30%' | '50%' | '70%' | '90%' | 'content';
121
121
  }
122
122
 
123
123
  export type NavigationButtonProps = {
package/Image/index.tsx CHANGED
@@ -10,7 +10,13 @@ import {ImageProps} from './types';
10
10
 
11
11
  type Status = 'success' | 'loading' | 'error';
12
12
 
13
- const Image: React.FC<ImageProps> = ({style, source, loading, ...rest}) => {
13
+ const Image: React.FC<ImageProps> = ({
14
+ style,
15
+ source,
16
+ loading,
17
+ children,
18
+ ...rest
19
+ }) => {
14
20
  const {theme} = useContext(ApplicationContext);
15
21
  const error = useRef(false);
16
22
  const [status, setStatus] = useState<Status>('success');
@@ -32,6 +38,7 @@ const Image: React.FC<ImageProps> = ({style, source, loading, ...rest}) => {
32
38
  </View>
33
39
  );
34
40
  }
41
+ return children;
35
42
  };
36
43
 
37
44
  return (
package/Image/styles.ts CHANGED
@@ -2,8 +2,6 @@ import {StyleSheet} from 'react-native';
2
2
 
3
3
  export default StyleSheet.create({
4
4
  container: {
5
- alignItems: 'center',
6
- justifyContent: 'center',
7
5
  width: '100%',
8
6
  height: '100%',
9
7
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.20",
3
+ "version": "0.81.22",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {