Skip to content

Commit 3e94c87

Browse files
committed
Fix snacks with custom drawer content
1 parent e5df463 commit 3e94c87

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

static/examples/5.x/animated-drawer-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Drawer = createDrawerNavigator();
4545

4646
function MyDrawer() {
4747
return (
48-
<Drawer.Navigator drawerContent={props => CustomDrawerContent(props)}>
48+
<Drawer.Navigator drawerContent={props => <CustomDrawerContent {...props} />}>
4949
<Drawer.Screen name="Feed" component={Feed} />
5050
<Drawer.Screen name="Article" component={Article} />
5151
</Drawer.Navigator>

static/examples/5.x/custom-drawer-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Drawer = createDrawerNavigator();
3737

3838
function MyDrawer() {
3939
return (
40-
<Drawer.Navigator drawerContent={props => CustomDrawerContent(props)}>
40+
<Drawer.Navigator drawerContent={props => <CustomDrawerContent {...props} />}>
4141
<Drawer.Screen name="Feed" component={Feed} />
4242
<Drawer.Screen name="Article" component={Article} />
4343
</Drawer.Navigator>

static/examples/5.x/drawer-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Drawer = createDrawerNavigator();
6060
export default function App() {
6161
return (
6262
<NavigationContainer>
63-
<Drawer.Navigator drawerContent={props => CustomDrawerContent(props)}>
63+
<Drawer.Navigator drawerContent={props => <CustomDrawerContent {...props} />}>
6464
<Drawer.Screen name="Home" component={HomeScreen} />
6565
<Drawer.Screen name="Profile" component={ProfileScreen} />
6666
</Drawer.Navigator>

static/examples/5.x/drawer-dispatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Drawer = createDrawerNavigator();
5252

5353
function MyDrawer() {
5454
return (
55-
<Drawer.Navigator drawerContent={props => CustomDrawerContent(props)}>
55+
<Drawer.Navigator drawerContent={props => <CustomDrawerContent {...props} />}>
5656
<Drawer.Screen name="Feed" component={Feed} />
5757
<Drawer.Screen name="Notifications" component={Notifications} />
5858
</Drawer.Navigator>

static/examples/5.x/drawer-open-close-toggle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Drawer = createDrawerNavigator();
4646

4747
function MyDrawer() {
4848
return (
49-
<Drawer.Navigator drawerContent={props => CustomDrawerContent(props)}>
49+
<Drawer.Navigator drawerContent={props => <CustomDrawerContent {...props} />}>
5050
<Drawer.Screen name="Feed" component={Feed} />
5151
<Drawer.Screen name="Notifications" component={Notifications} />
5252
</Drawer.Navigator>

0 commit comments

Comments
 (0)