How sciphergfx/react-native-kiosk-mode works
Main Components
a. React Native Application Layer
• Main application component that implements the Immersive component
• JavaScript bridge interface
b. Native Module Layer
• KioskModeModule (Android)
• Native bridge implementation
c. Android System Integration
• MainActivity implementation
• Window/View System integration
• System UI flags handling
• [React Native App Layer]
• ↓
• [React Native Bridge]
• ↓
• [Native Module Layer]
• ↓
• [Android System Layer]
Key Elements to Highlight
a. Integration Points:
• How the Immersive component connects to KioskModeModule
• MainActivity modifications
• System UI flag configurations
b. Data Flow:
• Flow from React Native component to system UI changes
• Window focus change handling
Implementation Details
• KioskModeModule registration in MainApplication
• onWindowFocusChanged implementation
• System UI visibility flags
• Native module method calls
Component responsibilities
Keep the abstraction level focused on the architectural components while including enough detail to show the kiosk mode implementation specifics. This will help developers understand both the high-level structure and the technical implementation requirements.
• Component type indicators
• Any abbreviations used