How geekyants/nativebase works
• Source Modules (src/)
• primitives (low-level UI building blocks)
• composites (higher-order components composed from primitives)
• hooks (accessibility, responsive, theme, clipboard, etc.)
• utils (styling, DOM normalization, responsive queries, test utilities)
• theme (base tokens, component themes, v3/v33x compatibility)
• factory (component builder abstraction)
• Build & CI
• Babel (babel.config.js)
• Metro (metro.config.js)
• Webpack (webpack.config.js in web/next apps)
• GitHub Actions (/.github/workflows/build.yml) running tests, builds, lint
• Publishing to npm (cli.js → npm registry)
• Example & Demo Apps
• Bare RN (RNBareExample/android + ios)
• Expo (expo-example/)
• Next.js Web (next-example/)
• Storybook Demo (example/storybook/)
• External Services
• npm registry
• GitHub (source, CI triggers, issue templates)
• React Native ecosystem (react-native, react-native-web, Expo, Next.js)
Architectural patterns & principles
• Component Hierarchy: primitives → composites → app code
• Theming System: theme/base tokens + theme/components → consumed via useThemeProps
• Utility Props: styled-system integration via factory/styled utilities
• Platform Abstraction: react-native vs web via react-native-web shims in utils/react-native-web-functions
• RNBareExample (Android/iOS)
• expo-example (Expo managed)
• next-example (Next.js/Web)
• example/storybook (Storybook UI explorer)
d. At the far right, list external services: GitHub (source + issues + PR templates), npm registry, Discord badge.
• Custom Theme: “extendTheme” entry point in core
• Responsive Props: “useBreakpointValue” hook
• Accessibility: “React Native ARIA hooks” in hooks/*
• Platform Shims: utils/react-native-web-functions