matinzd/rn-bottom-sheet

Cannot read property customStyle of undefined

Opened this issue ยท 1 comments

Putting an example down in a view I get the Cannot read property customStyle of undefined error.

TypeError: Cannot read property 'customStyle' of undefined

This error is located at:
    in Animator (at BottomDrawer.js:142)
    in BottomDrawer (at HomeScreen.js:183)
    in RCTView (at View.js:45)
    in View (at createAnimatedComponent.js:151)
    in AnimatedComponent (at react-native-safe-area-view/index.js:163)
    in SafeView (at withOrientation.js:54)
    in withOrientation (at HomeScreen.js:170)
    in HomeScreen (at SceneView.js:9)
    in SceneView (at StackViewLayout.tsx:910)
    in RCTView (at View.js:45)
    in View (at createAnimatedComponent.js:151)
    in AnimatedComponent (at StackViewCard.tsx:106)
    in RCTView (at View.js:45)
    in View (at createAnimatedComponent.js:151)
    in AnimatedComponent (at screens.native.js:71)
    in Screen (at StackViewCard.tsx:93)
    in Card (at createPointerEventsContainer.tsx:95)
    in Container (at StackViewLayout.tsx:985)
    in RCTView (at View.js:45)
    in View (at screens.native.js:101)
    in ScreenContainer (at StackViewLayout.tsx:394)
    in RCTView (at View.js:45)
    in View (at createAnimatedComponent.js:151)
    in AnimatedComponent (at StackViewLayout.tsx:384)
    in PanGestureHandler (at StackViewLayout.tsx:377)
    in StackViewLayout (at withOrientation.js:30)
    in withOrientation (at StackView.tsx:104)
    in RCTView (at View.js:45)
    in View (at Transitioner.tsx:267)
    in Transitioner (at StackView.tsx:41)
    in StackView (at createNavigator.js:80)
    in Navigator (at createKeyboardAwareNavigator.js:12)
    in KeyboardAwareNavigator (at SceneView.js:9)
    in SceneView (at createTabNavigator.js:39)
    in RCTView (at View.js:45)
    in View (at ResourceSavingScene.js:37)
    in RCTView (at View.js:45)
    in View (at ResourceSavingScene.js:26)
    in ResourceSavingScene (at createBottomTabNavigator.js:120)
    in RCTView (at View.js:45)
    in View (at screens.native.js:101)
    in ScreenContainer (at createBottomTabNavigator.js:110)
    in RCTView (at View.js:45)
    in View (at createBottomTabNavigator.js:109)
    in TabNavigationView (at createTabNavigator.js:197)
    in NavigationView (at createNavigator.js:80)
    in Navigator (at SceneView.js:9)
    in SceneView (at SwitchView.js:12)
    in SwitchView (at createNavigator.js:80)
    in Navigator (at createAppContainer.js:430)
    in NavigationContainer (at App.js:48)
    in RCTView (at View.js:45)
    in View (created by ModalPanel)
    in ModalPanel (created by ApplicationProvider)
    in ThemeProvider (created by StyleProvider)
    in MappingProvider (created by StyleProvider)
    in StyleProvider (created by ApplicationProvider)
    in ApplicationProvider (at App.js:46)
    in App (at withExpoRoot.js:20)
    in RootErrorBoundary (at withExpoRoot.js:19)
    in ExpoRootComponent (at renderApplication.js:35)
    in RCTView (at View.js:45)
    in View (at AppContainer.js:98)
    in RCTView (at View.js:45)
    in View (at react-native-root-siblings/index.js:32)
    in RootSiblingsWrapper (at AppContainer.js:112)
    in RCTView (at View.js:45)
    in View (at AppContainer.js:115)
    in AppContainer (at renderApplication.js:34)

Object.animationContainer
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:255972:23
Animator.render
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:255920:55
Animator.proxiedMethod
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:47397:32
finishClassComponent
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:19630:37
updateClassComponent
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:19593:30
beginWork
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:20368:22
performUnitOfWork
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:23750:18
workLoop
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:23784:30
renderRoot
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:23850:13
performWorkOnRoot
    e1980677-a6c2-4e8e-b5ad-198b1933ce1b:24588:13

Noticed this when installing it... could the prop types vagueness be the issue?

warning Pattern ["prop-types@latest"] is trying to unpack in the same destination "/Users/brendan/Library/Caches/Yarn/v6/npm-prop-types-15.7.2-52c41e75b8c87e72b9d9360e0206b99dcbffa6c5-integrity/node_modules/prop-types" as pattern ["prop-types@^15.6.0","prop-types@^15.6.1","prop-types@^15.6.2","prop-types@^15.6.2","prop-types@^15.5.8","prop-types@^15.5.10","prop-types@^15.7.2","prop-types@^15.6.0","prop-types@^15.6.0","prop-types@^15.6.2","prop-types@^15.6.2","prop-types@^15.6.0","prop-types@^15.7.2","prop-types@^15.6.1","prop-types@^15.6.1","prop-types@^15.6.2"]. This could result in non-deterministic behavior, skipping.
[3/4] ๐Ÿ”—  Linking dependencies...
[4/4] ๐Ÿ”จ  Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
โ””โ”€ rn-bottom-sheet@1.1.0
info All dependencies
โ””โ”€ rn-bottom-sheet@1.1.0
โœจ  Done in 5.63s.