1.0.0 • Published 1 year ago

native-pools-core v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Install Package

    yarn add react-native-pool-core
    npm install react-native-pool-core

Note Install Dependency Libary

 yarn add react-native-mmkv react-native-linear-gradient react-native-video  react-native-svg @react-native-community/blur react-native-reanimated
 npm install react-native-mmkv react-native-linear-gradient react-native-video react-native-svg @react-native-community/blur react-native-reanimated

Components

PoolServicePopup

import {PoolServicePopup} from 'react-native-pool-core'

<!---->
    type Props = {
        packageName: string;
        version: string;
        userId: string;
    }
<!---->

<PoolServicePopup 
    packageName={""}
    version={""}
    userId={""}
/> 

PoolServiceLanguage

import {PoolServiceLanguage} from 'react-native-pool-core'
<!---->
    type TProps = {
      placeholder: string;
      styleLabel?: StyleProp<TextStyle>;
      icon: JSX.Element;
      styleInput?: StyleProp<ViewStyle>;
      storageLocaleLanguage: string;
      storageJsonLanguage: string;
    };
<!---->
<PoolServiceLanguage 
    placeholder={""}
    storageLocaleLanguage={KEY_LOCAL_LANGUAGE}
    storageJsonLanguage={KEY_JSON_LANGUAGE}
/> 

useLocaleLanguage must to use in App.tsx

import {useLocaleLanguage} from 'react-native-pool-core'

const {loading} = useLocaleLanguage({
    storageLocaleLanguage: StorageKeys.LOCALE_LANGUAGE,
    storageJsonLanguage: StorageKeys.JSON_LANGUAGE,
  });
  
1.0.0

1 year ago