1.0.5 • Published 1 year ago

rn-pool-core v1.0.5

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

Install Package

yarn add rn-pool-core
npm install rn-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

Pool Service Popup and Update In App use in AppNavigation.tsx

import {PoolServicePopup,onUpdateInApp} from 'react-native-pool-core'
import DeviceInfo from 'react-native-device-info';

<PoolServicePopup
    onUpdate={(apk: string) =>
        onUpdateInApp({apk, packageName: 'Your package name'})
    }
    packageName={'Your package name'}
    version={DeviceInfo?.getVersion()}
    userId={'Your userId'}
    token={'token sso'}
    fcmToken={"fcm token"}
    deviceId={DeviceInfo?.getUniqueIdSync()}
/>

useLocaleLanguage must to use in App.tsx

import {useLocaleLanguage} from 'rn-pool-core'

const {loading} = useLocaleLanguage({
    storageLocaleLanguage: 'LOCALE_LANGUAGE',
    storageJsonLanguage: 'JSON_LANGUAGE',
    token: 'token sso',
});

useTimeUsed must to use in App.tsx

import {useTimeUsed} from 'rn-pool-core'

useTimeUsed({packageName: 'Your package name';, token: 'token sso'});
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago