List of Packages
Folder structure
packages/
├── components
├── config
├── device
├── localization
├── map
├── navigation
├── relay
├── universal-components
├── utils
Packages description
components
- Private package
- Contains Margarita related reusable components
- More info in separate Margarita Components section
config
- Private package
- Reusable Margarita constants and types
- For example date format strings, color values, links and time values
device
- Private package
- Device related helpers
- For example to detect device
layout
orlocale
localization
@kiwicom/margarita-localization
- Private package
- Localisation related helpers based on device locale
- For example currency formatter
map
- Private package
- Margarita
MapView
implementation
navigation
- Private package
- Screens navigation related helpers, which unifies how navigation is used on both platforms
relay
- Private package
- Margarita
Relay
implementation, in most cases just exports@kiwicom/relay
functions - Contains margarita
QueryRenderer
implementation
universal-components
- Component Library for
React Native
,Expo
andReact
applications - More info in separate Universal Components section
utils
- Private package
- Contains small reusable utils and helpers which can be used across platforms
- For example date and string formatting, debouncing or reusable
noop
function