Skip to content

Commit 12040e3

Browse files
roshangm1osdnk
authored andcommitted
Fix height: NAN issue because of undefined state (#13)
1 parent f30acc1 commit 12040e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ export default class BottomSheetBehavior extends Component {
380380
heightOfHeaderAnimated: (state && state.heightOfHeaderAnimated) || new Value(0),
381381
heightOfContent: (state && state.heightOfContent) || new Value(0),
382382
initSnap: sortedPropsSnapPints[0].val,
383-
snapPoints
383+
snapPoints,
384+
heightOfHeader: (state && state.heightOfHeader) || 0
385+
384386
}
385387
}
386388

0 commit comments

Comments
 (0)