'KeyboardAwareScrollView props innerRef scrollToEnd not working
I'm trying to call scrollToEnd() in a screen that uses https://github.com/APSL/react-native-keyboard-aware-scroll-view and I get the error:
"cannot read property 'props' of undefined".
My code looks like this:
let scroll
(at the beginning of the file)
Then, inside the return:
<KeyboardAwareScrollView innerRef={ref => { scroll = ref }}>
my scrollable code
</KeyboardAwareScrollView>
And then there is a button which has
onPress={() => scroll.props.scrolltoEnd()}
Clicking the button gives the error above, which makes me think I'm not using innerRef correctly? Do I need to use useRef instead at some point? Any help is appreciated, thanks!
Solution 1:[1]
Try query:
@Query("SELECT * FROM themes_table WHERE id = :id")
fun getThemesWithQuestions(id: Int): MutableList<ThemeWithQuestions>
As well check this maybe it will be helpful
How to handle one to many entity relationship with room and recyclerviews?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | chrisu.chrisu |
