test-storybook-b
v0.1.2
Published
`@nexusui/react-native-components` is a package that contains custom components specially developed for NexusUI applications. They will simplify your development by giving you out-of-the-box implementations for various high-level UI elements that you can
Downloads
12
Readme
@nexusui/react-native-components
@nexusui/react-native-components
is a package that contains custom components specially developed for NexusUI applications. They will simplify your development by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your mobile application.
Installation
# With yarn
yarn add @nexusui/react-native-components
# With npm
npm install @nexusui/react-native-components
Peer Dependencies
You will also need to install the necessary peer dependencies:
# With yarn
yarn add @nexusui/react-native-theme react-native react-native-paper react-native-safe-area-context react-native-vector-icons
# With npm
npm install --save @nexusui/react-native-theme react-native react-native-paper react-native-safe-area-context react-native-vector-icons
Additionaly for iOS
platform there is a requirement to link the native parts of the library:
npx pod-install
Localization
We suggest using react-native-localize package. it provide function findBestLanguageTag
to help you to get the language that is supported by our system.
import React from 'react';
import { LanguageProvider,supportedLocales } from '@nexusui/react-native-components';
const defaultLanguage = { languageTag: 'en-US', isRTL: false };
const App = () => {
const { languageTag } = findBestLanguageTag(supportedLocales) || defaultLanguage;
return <LanguageProvider language={languageTag}>{/* Your Application Contents Here */}</LanguageProvider>;
};
Usage
import { ComponentName } from '@nexusui/react-native-components';
License
BSD-3-Clause