It's implemented using onLayout handler attached to the content container which this ScrollView renders. Handler function is passed the content width and content height as parameters: (contentWidth, contentHeight) ![]() TypeĬalled when scrollable content view of the ScrollView changes. Nested scrolling is supported by default on iOS. When false, it disables all bouncing even if the alwaysBounce props are true. TypeĮnables nested scrolling for Android API level 21+. bounces When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction. ![]() ![]() In order to bound the height of a ScrollView, either set the height of the view directly (discouraged) or make sure all parent views have bounded height. Keep in mind that ScrollViews must have a bounded height in order to work, since they contain unbounded-height children into a bounded container (via a scroll interaction). Component that wraps platform ScrollView while providing integration with touch locking "responder" system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |