React Native component library for components used by React Native applications of Observation.org. There are 2 kinds of components: UI components:
AccordionBackButtonBackgroundImageBottomSheetBottomSheetWithSearchInputBrandIconBrandIconsCapitalizeTextCheckboxChipContentImageDateDateFromToFilterDatePickerDiscloseDocumentLinkFilterButtonFilterOptionFilterSelectFieldHtmlContent (+ HtmlContentProps)IconIconButtonIconNameIconTextIconViewIconsInputFieldInputPanelItemSeparatorLargeButton (+ LargeButtonProps)LightboxListItemLocationMessageMoreInfoNotificationNotificationPopup (+ NotificationPopupStaticProps)PageIndicatorPanelPopupProgressBarProgressBarListRarityRaritySliderSectionHeaderSingleLineTextLinkTooltip (+ TooltipProps)WebLink
non-UI components:
Log.setLogConfiguration: A function to change the logging of the component libraryopenUrl: Opens URLsuseBottomSheetBackHandler: A hook to close a BottomSheet on the Android hardware back buttonuseShowBlurView: A safe way to set a blur on the background
Additionally, the package exposes two subpath entry points:
react-native-components/theme:
ThemeProvider,useTheme,useStylescreateTheme,defaultTheme: The default theme with colors, margins and text styles
react-native-components/styles:
font,fontSize,lineHeight: Font styleslayout,rounded,shadow: Layout stylescreateInputStyles,createBottomSheetStyles