How oblador/react-native-collapsible works
react-native-collapsible is a small React Native UI library. Its primary workflow is to accept a collapsed-state change, measure content when needed, and animate its height; Accordion adds section selection and delegates each section’s visibility to Collapsible. The graph focuses on runtime behavior and the separately documented accordion capability. Source evidence is limited to the provided excerpts and README; no unshown internals are assumed.
Main entry points: Collapsible.js Collapsible view · Accordion.js Accordion sections
Components 7
Accordion UI
- Accordion sections
Accordion.js - Section selection
Accordion.js
Collapse Animation
- Collapsible view
Collapsible.js - Content measurement
Collapsible.js - Height animation
Collapsible.js
Other components
- App or UI consumer
- React Native Animated
Connections 9
- App or UI consumer → Accordion sections: supplies sections
README.md - App or UI consumer → Section selection: sets active sections
README.md - Accordion sections → Section selection: handles header taps
Accordion.js - Section selection → App or UI consumer: reports changes
Accordion.js - Accordion sections → Collapsible view: renders per section
Accordion.js - Collapsible view → Content measurement: measures content
Collapsible.js - Collapsible view → Height animation: starts transition
Collapsible.js - Height animation → React Native Animated: uses Animated timing
Collapsible.js - Collapsible view → App or UI consumer: signals animation end
Collapsible.js