Skip to content

Commit

Permalink
CardSection - expose props (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-i-k-e-l committed Jun 23, 2020
1 parent 9983f27 commit b060aa2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions generatedTypes/components/card/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react';
import { ViewStyle } from 'react-native';
import { ViewPropTypes } from '../view';
import { TouchableOpacityProps } from '../touchableOpacity';
import { CardSectionProps } from './CardSection';
export { CardSectionProps };
export declare type CardPropTypes = ViewPropTypes & TouchableOpacityProps & {
/**
* card custom width
Expand Down Expand Up @@ -61,9 +63,9 @@ export declare type CardPropTypes = ViewPropTypes & TouchableOpacityProps & {
};
declare const _default: (React.ComponentClass<CardPropTypes, any> & {
Image: React.ComponentType<import("./CardImage").CardImageProps>;
Section: React.ComponentClass<import("./CardSection").CardSectionProps, any> | React.FunctionComponent<import("./CardSection").CardSectionProps>;
Section: React.ComponentClass<CardSectionProps, any> | React.FunctionComponent<CardSectionProps>;
}) | (React.FunctionComponent<CardPropTypes> & {
Image: React.ComponentType<import("./CardImage").CardImageProps>;
Section: React.ComponentClass<import("./CardSection").CardSectionProps, any> | React.FunctionComponent<import("./CardSection").CardSectionProps>;
Section: React.ComponentClass<CardSectionProps, any> | React.FunctionComponent<CardSectionProps>;
});
export default _default;
6 changes: 1 addition & 5 deletions generatedTypes/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Please use this file for declaring all the exports, so they could be picked up by typescript's complier
*/
export * from './style';
export {default as Card, CardPropTypes} from './components/card';
export {default as Card, CardPropTypes, CardSectionProps} from './components/card';
export {default as View, ViewPropTypes} from './components/view';
export {default as Text} from './components/text';
export {default as TouchableOpacity, TouchableOpacityProps} from './components/touchableOpacity';
Expand All @@ -22,10 +22,6 @@ export {
Avatar,
Badge,
Card,
// CardProps,
// CardImageProps,
// CardSectionProps,
// CardSectionContentProps,
Carousel,
ConnectionStatusBar,
Dialog,
Expand Down
3 changes: 2 additions & 1 deletion src/components/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import View, {ViewPropTypes} from '../view';
import TouchableOpacity, {TouchableOpacityProps} from '../touchableOpacity';
import Image from '../image';
import CardImage from './CardImage';
import CardSection from './CardSection';
import CardSection, {CardSectionProps} from './CardSection';
// @ts-ignore
import Assets from '../../assets';
import CardContext from './CardContext';
Expand All @@ -31,6 +31,7 @@ const DEFAULT_SELECTION_PROPS = {
hideIndicator: false
};

export {CardSectionProps};
export type CardPropTypes = ViewPropTypes &
TouchableOpacityProps & {
/**
Expand Down

0 comments on commit b060aa2

Please sign in to comment.