Skip to content

Commit

Permalink
Revert "Improve Flow Types"
Browse files Browse the repository at this point in the history
This reverts commit bee33a4.
  • Loading branch information
grabbou committed Oct 10, 2017
1 parent dd56f49 commit db6c44a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Libraries/Lists/SectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type {Props as VirtualizedSectionListProps} from 'VirtualizedSectionList'

type Item = any;

export type SectionBase<SectionItemT> = {
type SectionBase<SectionItemT> = {
/**
* The data for rendering items in this section.
*/
Expand Down Expand Up @@ -187,11 +187,10 @@ type OptionalProps<SectionT: SectionBase<any>> = {
legacyImplementation?: ?boolean,
};

export type Props<SectionT> = {
...$Exact<RequiredProps<SectionT>>,
...$Exact<OptionalProps<SectionT>>,
...$Exact<VirtualizedSectionListProps<SectionT>>,
};
export type Props<SectionT> = RequiredProps<SectionT> &
OptionalProps<SectionT> &
VirtualizedSectionListProps<SectionT>;

const defaultProps = {
...VirtualizedSectionList.defaultProps,
stickySectionHeadersEnabled: Platform.OS === 'ios',
Expand Down

0 comments on commit db6c44a

Please sign in to comment.