Skip to content

Commit b060aa2

Browse files
authored
CardSection - expose props (#820)
1 parent 9983f27 commit b060aa2

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

generatedTypes/components/card/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from 'react';
22
import { ViewStyle } from 'react-native';
33
import { ViewPropTypes } from '../view';
44
import { TouchableOpacityProps } from '../touchableOpacity';
5+
import { CardSectionProps } from './CardSection';
6+
export { CardSectionProps };
57
export declare type CardPropTypes = ViewPropTypes & TouchableOpacityProps & {
68
/**
79
* card custom width
@@ -61,9 +63,9 @@ export declare type CardPropTypes = ViewPropTypes & TouchableOpacityProps & {
6163
};
6264
declare const _default: (React.ComponentClass<CardPropTypes, any> & {
6365
Image: React.ComponentType<import("./CardImage").CardImageProps>;
64-
Section: React.ComponentClass<import("./CardSection").CardSectionProps, any> | React.FunctionComponent<import("./CardSection").CardSectionProps>;
66+
Section: React.ComponentClass<CardSectionProps, any> | React.FunctionComponent<CardSectionProps>;
6567
}) | (React.FunctionComponent<CardPropTypes> & {
6668
Image: React.ComponentType<import("./CardImage").CardImageProps>;
67-
Section: React.ComponentClass<import("./CardSection").CardSectionProps, any> | React.FunctionComponent<import("./CardSection").CardSectionProps>;
69+
Section: React.ComponentClass<CardSectionProps, any> | React.FunctionComponent<CardSectionProps>;
6870
});
6971
export default _default;

generatedTypes/index.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Please use this file for declaring all the exports, so they could be picked up by typescript's complier
55
*/
66
export * from './style';
7-
export {default as Card, CardPropTypes} from './components/card';
7+
export {default as Card, CardPropTypes, CardSectionProps} from './components/card';
88
export {default as View, ViewPropTypes} from './components/view';
99
export {default as Text} from './components/text';
1010
export {default as TouchableOpacity, TouchableOpacityProps} from './components/touchableOpacity';
@@ -22,10 +22,6 @@ export {
2222
Avatar,
2323
Badge,
2424
Card,
25-
// CardProps,
26-
// CardImageProps,
27-
// CardSectionProps,
28-
// CardSectionContentProps,
2925
Carousel,
3026
ConnectionStatusBar,
3127
Dialog,

src/components/card/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import View, {ViewPropTypes} from '../view';
1515
import TouchableOpacity, {TouchableOpacityProps} from '../touchableOpacity';
1616
import Image from '../image';
1717
import CardImage from './CardImage';
18-
import CardSection from './CardSection';
18+
import CardSection, {CardSectionProps} from './CardSection';
1919
// @ts-ignore
2020
import Assets from '../../assets';
2121
import CardContext from './CardContext';
@@ -31,6 +31,7 @@ const DEFAULT_SELECTION_PROPS = {
3131
hideIndicator: false
3232
};
3333

34+
export {CardSectionProps};
3435
export type CardPropTypes = ViewPropTypes &
3536
TouchableOpacityProps & {
3637
/**

0 commit comments

Comments
 (0)