Nozbe / withObservables

HOC (Higher-Order Component) for connecting RxJS Observables to React Components
https://github.com/Nozbe/WatermelonDB
MIT License
68 stars 26 forks source link

Can't access Wrapped component methods #101

Closed reyalpsirc closed 3 years ago

reyalpsirc commented 3 years ago

I'm building a page which has Swipe Row items inside a list (which uses this: https://github.com/computerjazz/react-native-swipeable-item/) and I need a way to access the "close" method of each item so that I can close all items except the active one. The thing is that when I try to access the close method through my ref variable, I can't find the close method. However, if I pass the row component directly to the list without using "withObservables", it then works and so, how can I access it with this library?