1.0.0 • Published 2 years ago

customised-color-plugin v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

floating-rating-package

Plugin made on React Native purely for Ajman App

🔧 Install

floating-rating-package is available on npm. It can be installed with the following command:

npm install floating-rating-package --save

floating-rating-package is available on yarn as well. It can be installed with the following command:

yarn add floating-rating-package

Usage

import {FloatingRating} from 'floating-rating-package';

export default function App() {
  return (
        <FloatingRating lang={1} isMaleUser={false} isDev={true} dept={"pol"} />
  );
}

# For Language:
1 for English, 2 for Arabic, 3 for Urdu

# For isMaleUser:
For male=true, female=false

# For isDev:
For production=false, development=true

# For dept:
Enter the short code of department like "pol" for police

Dependencies

Create a file with .sh extension on the root directory of the project and copy/paste the following lines in the file. like install-depencies.sh

# For install packages and android node_modules
yarn add floating-rating-package @react-native-async-storage/async-storage @react-native-community/checkbox @react-native-community/netinfo@6.0.0 @react-navigation/native@6.0.6 @react-navigation/native-stack@6.2.5 @unsw-gsbme/react-native-keep-awake@1.0.5 react-native-audio-recorder-player react-native-blob-util@0.13.17 react-native-circular-progress react-native-device-info react-native-document-picker react-native-fs react-native-image-picker react-native-mov-to-mp4 react-native-pdf react-native-permissions react-native-safe-area-context react-native-screens react-native-star-rating react-native-vector-icons react-native-video react-redux redux redux-logger redux-thunk redux-persist 
# For installing ios dependencies
cd ios && pod install
# Returning to previous folder
cd ..

now run the file using the following command

sh filename.sh and press enter ↵

❗ Issues

If you think any of the floating-rating-package can be improved, please write an email at athar.zaib@lovefordata.com with the required feature.

✨ Integration

React-native-blob-util

If react-native-blob-util exists then good, if react-native-blob exist delete it & install this one

Add Kotlin dependency in android/build.gradle

ext {
kotlinVersion = '1.5.0'
}

Also include this

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" //add this for rating plugin
}

For the gif animation in android, add this line as well in android/app/build.gradle

dependencies {
    implementation 'com.facebook.fresco:animated-gif:2.x.x'
    }

If Android shows white screen, 
	1- delete node modules & re-install again
	2- do Gradlew clean and then run app

If audio doesn’t work in in iOS, we have to create a bridging header first. For more info: https://riptutorial.com/ios/example/32537/how-to-create-a-swift-bridging-header-manually

acornajvansi-colorsansi-regexansi-stylesacorn-jsxarray-includesarray.prototype.flatmapargparseastral-regexasapaxiosbabel-eslintbalanced-matchbabel-plugin-dynamic-import-nodebabel-plugin-polyfill-corejs3babel-plugin-polyfill-corejs2babel-plugin-polyfill-regeneratorbase-64brace-expansionboolbasebrowserslistcall-bindcamelcasecliuichalkcaniuse-litecode-point-atcolor-convertcallsitesconcat-mapconvert-source-mapcore-js-compatcolor-namecore-jscrypto-jscss-selectcss-treecross-spawndecamelizedebugcsstypecss-whatdeep-diffdeep-isdecode-uri-componentdeep-assigndom-serializerdoctrinedooboolab-welcomedefine-propertiesdomelementtypedomhandlerelectron-to-chromiumdomutilseme-encryption-scheme-polyfillencodingemoji-regexenquirerentitieses-abstracterror-exes-to-primitiveescape-string-regexpeslint-config-prettierescaladeeslinteslint-plugin-flowtypeeslint-plugin-eslint-commentseslint-plugin-reacteslint-plugin-react-nativeeslint-plugin-react-hookseslint-plugin-prettiereslint-plugin-react-native-globalseslint-scopeeslint-utilseslint-visitor-keysespreeesprimaestraverseesrecurseesqueryesutilsexecafast-difffast-json-stable-stringifyfast-deep-equalfbjsfile-entry-cachefast-levenshteinfilter-objfind-upfollow-redirectsflattedflat-cachefs.realpathfunctional-red-black-treefunction-bindgensyncget-caller-fileget-intrinsicget-stdinget-streamglobalsget-symbol-descriptionglobglob-parenthasgraceful-fshas-bigintshas-flaghas-symbolshosted-git-infohoist-non-react-staticshas-tostringtagignoreiconv-liteimport-freshinflightinternal-slotimurmurhashinvert-kvis-arrayishinheritsis-bigintis-boolean-objectis-callableis-core-moduleis-date-objectis-extglobeslint-plugin-jestis-globis-negative-zerois-number-objectis-objis-shared-array-bufferis-streamis-stringis-regexis-weakrefis-symbolisexeisomorphic-fetchjs-tokensjs-yamljson5jsescjson-stable-stringify-without-jsonifyjson-schema-traversekeymirrorjsx-ast-utilslcidlevnload-json-filelocate-pathlodashis-fullwidth-code-pointlodash._reinterpolatelodash.debouncelodash.isequallodash.frompairslodash.isstringlodash.omitlodash.picklodash.templatelru-cachelodash.templatesettingsmetro-react-native-babel-presetmdn-datamemmimic-fnminimatchminimistnanoidmkdirpnatural-comparemsnode-fetchloose-envifynode-releasesnormalize-package-datanpm-run-pathobject-assignnth-checkobject-inspectobject-keysnumber-is-nanobject.entriesobject.assignobject.hasownobject.valuesobject.fromentriesoptionatorp-finallyp-limitparse-jsonp-locatep-trypath-existsonceparent-moduleos-localepath-is-absolutepath-keypath-parsepicocolorspath-typepifyprelude-lsprettierprettier-linter-helperspseudomappromiseprogressprop-typespunycodequery-stringreact-freezereact-isreact-native-animatablereact-native-audio-recorder-playerreact-native-blob-utilreact-native-buttonreact-native-circular-progressreact-native-device-inforeact-native-document-pickerreact-native-image-pickerreact-native-fsreact-native-mov-to-mp4react-native-pdfreact-native-permissionsreact-native-safe-area-contextreact-native-star-ratingreact-native-screensreact-native-svgreact-native-vector-iconsreact-native-videoreact-reduxreact-refreshreact-test-rendererreact-shallow-rendererread-pkg-upredux-loggerredux-thunkreduxregenerateredux-persistregenerator-runtimeregenerate-unicode-propertiesregexp.prototype.flagsregenerator-transformregexpu-coreregjsgenregjsparserregexpprequire-main-filenameresolverequire-directoryresolve-fromsafer-buffersafe-bufferrimrafread-pkgset-blockingsetimmediateschedulershaka-playershebang-commandshebang-regexside-channelsignal-exitslice-ansispdx-correctsource-mapspdx-exceptionsspdx-expression-parsespdx-license-idssemversplit-on-firststrict-uri-encodesprintf-jsstring-widthstring.prototype.trimendstring.prototype.matchallstring.prototype.trimstartstrip-ansistrip-eofstrip-json-commentssupports-colorsupports-preserve-symlinks-flagtabletext-tableto-fast-propertiestslibtsutilstype-festtype-checkunbox-primitiveua-parser-jsunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascripturi-jsutf8v8-compile-cachevalidate-npm-package-licensewarn-oncewhatwg-fetchwhichwhich-boxed-primitivewhich-moduleword-wrapwrappywrap-ansiwritey18nstrip-bomyargsyallistyargs-parser
1.0.0

2 years ago