How apsl/react-native-keyboard-aware-scroll-view works
This library wraps React Native scrollable components so keyboard events and focused TextInputs can trigger keyboard-aware scrolling. The main workflow is to use a wrapped scroll view or list, focus an input, then let the HOC measure and scroll it; callers can also request scrolling directly. The README documents the public capabilities, while the sampled HOC excerpt shows keyboard subscriptions, measurement, and scroll behavior. Details of some internal calls are omitted because the excerpt is incomplete.
Main entry points: KeyboardAwareHOC.js Keyboard HOC · index.js Package exports · KeyboardAwareScrollView.js Aware ScrollView · KeyboardAwareFlatList.js Aware FlatList
Components 9
Public adapters
- Package exports
index.js - Aware ScrollView
lib/KeyboardAwareScrollView.js - Aware FlatList
lib/KeyboardAwareFlatList.js - Aware SectionList
lib/KeyboardAwareSectionList.js
Keyboard runtime
- Keyboard HOC
lib/KeyboardAwareHOC.js - Scroll interface
lib/KeyboardAwareInterface.js
Other components
- App / TextInput
- RN Keyboard events
- RN scroll / UIManager
Connections 12
- Package exports → Aware ScrollView: exports
index.js - Package exports → Aware FlatList: exports
index.js - Package exports → Aware SectionList: exports
index.js - Package exports → Keyboard HOC: exports
index.js - Aware ScrollView → Keyboard HOC: wraps ScrollView
lib/KeyboardAwareScrollView.js - Aware FlatList → Keyboard HOC: wraps FlatList
lib/KeyboardAwareFlatList.js - Aware SectionList → Keyboard HOC: wraps SectionList
lib/KeyboardAwareSectionList.js - App / TextInput → Aware ScrollView: uses component
README.md - App / TextInput → Keyboard HOC: may configure HOC
README.md - RN Keyboard events → Keyboard HOC: notifies
lib/KeyboardAwareHOC.js - Keyboard HOC → RN scroll / UIManager: measures and scrolls
lib/KeyboardAwareHOC.js - Keyboard HOC → Scroll interface: implements
lib/KeyboardAwareHOC.js