Skip to content

Commit

Permalink
refactor: update panel props in app js
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Sep 20, 2021
1 parent 0e1cb12 commit 68f6fa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from 'react';
import { SafeAreaView } from 'react-native';

import { SwipeablePanel } from 'rn-swipeable-panel';

import { Header } from './src/components/Header';
import { PanelContent } from './src/components/PanelContent';
import useSwipeablePanel from './src/hooks/useSwipeablePanel';
Expand Down Expand Up @@ -31,7 +32,7 @@ export default function App() {
openDarkPanel={openDarkPanel}
/>
</SafeAreaView>
<SwipeablePanel {...panelState} {...panelState.panelStyles} onClose={closePanel}>
<SwipeablePanel {...panelState} onClose={closePanel}>
<PanelContent
contentType={panelState.contentType}
panelState={panelState}
Expand Down

0 comments on commit 68f6fa5

Please sign in to comment.