UNPKG

@fto-consult/expo-ui

Version:

Bibliothèque de composants UI Expo,react-native

20 lines (17 loc) • 520 B
import ContentLoader from './RLoader'; import React from "$react"; import theme from "$theme"; export * from "./RLoader"; const RContentLoader = React.forwardRef((props,ref)=>{ const rest = theme.isDark()? { backgroundColor : theme.colors.onSurface, foregroundColor : theme.colors.text, } : {}; return <ContentLoader {...rest} {...props} ref = {ref} /> }); RContentLoader.displayName = "ContentLoaderComponent"; export default RContentLoader;