@cedros/data-react-native
v0.0.2
Published
React Native components, page templates, and theme system for cedros-data
Readme
@cedros/data-react-native
React Native components, page templates, and theme system for cedros-data.
Installation
npm install @cedros/data-react-nativePeer dependencies
npm install react-native-markdown-display
# Optional:
npm install react-native-svg @react-native-async-storage/async-storageUsage
import { CedrosDataProvider, SiteLayout, BlogIndexTemplate } from '@cedros/data-react-native';
function App() {
return (
<CedrosDataProvider theme="light">
<SiteLayout siteTitle="My Site" navigation={[]}>
{/* your content */}
</SiteLayout>
</CedrosDataProvider>
);
}Navigation
Components use onNavigate?: (route: string) => void callback props instead of coupling to any specific navigation library. Wire your own react-navigation or other router.
