Skip to content

Commit

Permalink
added children
Browse files Browse the repository at this point in the history
  • Loading branch information
TchernyavskyDaniil committed Nov 11, 2019
1 parent 449b5a3 commit 79abe17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const CustomizableRefreshControl = ({
delayCallback,
controlParams,
style,
children
}) => {
const [refreshing, setRefreshing] = useState(false);

Expand Down Expand Up @@ -40,7 +41,7 @@ export const CustomizableRefreshControl = ({

useUnmount(cancelRefreshing);

return <RefreshControl style={style} refreshing={refreshing} onRefresh={handleOnRefresh} {...controlParams} />
return <RefreshControl children={children} style={style} refreshing={refreshing} onRefresh={handleOnRefresh} {...controlParams} />
};

CustomizableRefreshControl.defaultProps = {
Expand Down

0 comments on commit 79abe17

Please sign in to comment.