0.3.0 • Published 2 years ago

@wecraftapps/react-native-use-keyboard v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-use-keyboard

Package to get keyboard events. Works on Android & iOS. This package fires keyboard events on Android even if android:windowSoftInputMode is set to adjustNothing.

Installation

npm i @wecraftapps/react-native-use-keyboard

Showcase

react-native-use-keyboard

Example basic usage
import React from 'react';
import { View, StyleSheet, Text, TextInput } from 'react-native';
import { useKeyboard } from '@wecraftapps/react-native-use-keyboard';

const BasicUsage = (): JSX.Element => {
  const [keyboard] = useKeyboard();

  return (
    <View style={styles.container}>
      <Text style={{ fontSize: 18, marginBottom: 8 }}>keyboard</Text>
      <Text style={{ fontSize: 18, marginBottom: 48, fontWeight: '700' }}>
        {JSON.stringify(keyboard)}
      </Text>

      <TextInput
        placeholder="Input"
        style={{
          height: 40,
          borderColor: '#000000',
          borderBottomWidth: 1,
          marginBottom: 36,
          width: '80%',
        }}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
});

export default BasicUsage;

Usage

import { useKeyboard } from '@wecraftapps/react-native-use-keyboard';

...

const [keyboard] = useKeyboard();
absolute-pathabababort-controlleracornJSONStreamacceptsacorn-globalsaggregate-erroracorn-walkajvagent-baseadd-streamanseransi-cyanansi-colorsansi-alignansi-fragmentsansi-escapesansi-redansi-grayansi-wrapansi-regexansi-stylesanymatchargparsearr-diffarray-ifyarr-flattenarr-unionarray-filterarray-includesarray-slicearray-maparray-reducearray-uniquearray-unionarray.prototype.mapasaparray.prototype.flatmaparrifyassign-symbolsastral-regexasyncasync-retryat-least-nodeasynckitatobbabel-plugin-dynamic-import-nodebabel-plugin-istanbulbabel-eslintbabel-jestbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-regeneratorbabel-plugin-polyfill-corejs3babel-preset-current-node-syntaxbabel-plugin-syntax-trailing-function-commasbabel-preset-jestbalanced-matchbabel-preset-fbjsbase64-jsbig-integerblbefore-after-hookbasebplist-creatorbindingsbracesbrowser-process-hrtimeboxenbufferbrace-expansionbplist-parserbserbrowserslistbytescache-basebuffer-fromcacheable-requestcaller-callsitecaller-pathcallsitescall-bindcamelcasecamelcase-keyscaniuse-litecapture-exitchar-regexchalkchardetci-infoclean-stackcjs-module-lexercli-boxescli-widthclass-utilscli-spinnerscli-cursorcliuicloneclone-responsecoclone-deepcollect-v8-coveragecollection-visitcolor-convertcolor-namecolor-supportacorn-jsxcolorettecommand-existscommandercompare-funccommondircomponent-emittercompressionbuffer-crc32concat-streamconcat-mapconfigstoreconventional-changelogconventional-changelog-angularconnectconventional-changelog-atomcombined-streamconventional-changelog-codemirrorconventional-changelog-emberconventional-changelog-expressconventional-changelog-conventionalcommitsconventional-changelog-coreconventional-changelog-preset-loaderconventional-changelog-writerconventional-changelog-jshintconventional-changelog-jqueryconventional-commits-filterconventional-commits-parserconvert-source-mapconventional-recommended-bumpcopy-descriptorcore-jscross-spawncore-js-compatcrypto-random-stringcosmiconfigcore-util-iscsstypecssstyledargscssomdateformatconventional-changelog-eslintdayjsdecamelizedata-urlsdecimal.jscompressibledecode-uri-componentdebugdedentdeep-extenddecompress-responsedeep-isdefaultsdefer-to-connectdeepmergedefine-propertydefine-propertiesdenodeifydeldelayed-streamdepddir-globdetect-newlinedeprecationdiff-sequencesdomexceptiondestroydot-propduplexer3ee-firstemitteryencodeurlelectron-to-chromiumencodingemoji-regexenquirerenvinfoerror-stack-parsererror-exes-array-method-boxes-properlyerrorhandleres-get-iteratores-abstractes-shim-unscopablesescape-htmles-to-primitiveescaladeescape-goatescodegeneslint-plugin-eslint-commentseslint-plugin-flowtypeescape-string-regexpeslint-plugin-reactdecamelize-keyseslint-plugin-react-hookseslint-utilseslint-plugin-react-nativeesprimaeslint-scopeeslint-plugin-react-native-globalseslint-visitor-keysesquerydoctrineeslint-plugin-jestesrecurseespreeestraverseeventemitter3etagevent-target-shimesutilsexecaexec-shexitexpand-bracketsexpectextend-shallowexternal-editorextglobfancy-logfast-deep-equalfast-globfast-difffastqfast-json-stable-stringifyfast-levenshteinfbjsfbjs-css-varsfb-watchmanfbjs-scriptsfiguresfile-entry-cachefilter-objfile-uri-to-pathfill-rangefind-upfind-cache-dirflat-cachefinalhandlerflattedfragment-cacheform-datafor-infseventsfreshfs-extrafs.realpathfunctional-red-black-treefunction-bindfunctions-have-namesgensyncget-intrinsicget-package-typeget-caller-fileget-pkg-repoget-streamgit-raw-commitsget-valueget-stdinget-symbol-descriptiongit-remote-origin-urlgit-upgit-semver-tagsglobglob-parentend-of-streamgit-url-parseglobbygotglobal-dirshard-rejectionglobalsgraceful-fsgrowlyhandlebarshashas-bigintshas-property-descriptorshas-symbolshas-valuehas-flaghas-valueshas-yarnhas-tostringtaghosted-git-infohermes-enginehtml-encoding-snifferhttp-cache-semanticshermes-profile-transformerhttp-proxy-agenthtml-escaperhttp-errorshttps-proxy-agenthuman-signalsignoreimage-sizeimport-cwdgitconfiglocaliconv-liteimport-lazyimport-fromieee754import-localindent-stringiniinquirerimurmurhashinheritsinflightinternal-slotinterpretis-absoluteinvariantipis-accessor-descriptoris-argumentsis-bigintis-arrayishis-boolean-objectis-bufferis-callableis-data-descriptoris-date-objectis-core-moduleis-ciis-extglobis-descriptoris-extendableis-directoryis-dockeris-generator-fnis-fullwidth-code-pointis-git-repositoryis-git-dirtyis-globis-interactiveis-mapis-installed-globallyis-negative-zerois-numberis-objis-npmis-number-objectis-plain-objis-plain-objectimport-freshis-path-insideis-potential-custom-element-nameis-regexis-relativeis-setis-shared-array-bufferis-sshis-streamis-stringis-symbolis-text-pathis-typedarrayis-unc-pathis-unicode-supportedis-weakrefis-windowsis-wslis-yarn-globalisarrayisobjectistanbul-lib-coverageisexeistanbul-lib-reportisomorphic-fetchistanbul-reportsistanbul-lib-instrumentiterate-valueiterate-iteratoristanbul-lib-source-mapsjest-changed-filesjest-configjest-diffjest-clijest-docblockjest-eachjest-environment-jsdomjest-environment-nodejest-get-typejest-jasmine2jest-haste-mapjest-matcher-utilsjest-mockjest-leak-detectorjest-message-utiljest-pnp-resolverjest-regex-utiljest-resolvejest-runnerjest-resolve-dependenciesjest-runtimejest-snapshotjest-utiljest-validatejest-watcherjest-workerjest-serializerjs-tokensjs-yamljsdomjetifierjsc-androidjson-bufferjsescjson-parse-better-errorsjson-parse-even-better-errorsjson-stable-stringifyjson-schema-traversejson-stable-stringify-without-jsonifyjsonifyjson-stringify-safejsonfilejson5jsx-ast-utilsjsonparsekeyvkind-ofklawkleuris-path-cwdlevnlevenlines-and-columnsload-json-filelocate-pathlodash.debouncelodashlodash.throttlelodash.ismatchlog-symbolslogkittylowercase-keyslru-cachelodash.truncateloose-envifymake-dirmacos-releasemap-objmeowmap-cachemap-visitmakeerrormerge2merge-streammetrometro-babel-registermetro-cachemetro-configmetro-react-native-babel-presetmetro-minify-uglifymetro-inspector-proxymetro-coremetro-react-native-babel-transformermetro-babel-transformermetro-source-mapmetro-resolvermetro-symbolicatemicromatchmimemime-dbmime-typesmimic-fnminimatchmin-indentmimic-responseminimistminimist-optionsmixin-deepmodify-valuesmkdirpmute-streamnanomatchnegotiatornanmsneo-asyncnew-github-release-urlnice-trynocachenode-int64node-releasesnode-fetchnode-notifiernode-stream-zipnormalize-pathnormalize-urlnpm-run-pathnullthrowsnwsapiobject-copynormalize-package-dataob1object-visitobject-keysobject-inspectobject.fromentriesobject.assignobject.entriesobject.hasownlodash.mergeobject.valueson-finishedobject.pickon-headersopenonceoptionatororaonetimeos-nameoptionsp-each-seriesos-tmpdirp-cancelablep-finallyp-mappackage-jsonp-tryp-locatep-limitparse-node-versionparse-pathparse-urlparseurlpascalcaseparse5path-is-absoluteparse-jsonpath-existspath-keypath-typepicocolorspath-parsepicomatchplistpkg-dirpifypiratesposix-character-classesplugin-errorprelude-lsprepend-httpprettier-linter-helpersprepend-filepretty-formatprogresspromisepromise.allsettledpromptsprotocolsprocess-nextick-argspslprop-typespumppseudomappunycodepupaqsparent-moduleqobject-assignqueue-microtasknatural-comparequery-stringquick-lrureact-devtools-corercreact-isreact-refreshrange-parserread-pkg-upread-pkgreadable-streamregeneraterechoirredentregenerator-transformregenerate-unicode-propertiesregexp.prototype.flagsregexppregexpu-coreregenerator-runtimeregistry-auth-tokenregjsgenregjsparserlatest-versionregex-notremove-trailing-separatorrepeat-elementrepeat-stringrequire-main-filenamerequire-from-stringrequire-directoryresolveresolve-cwdresolve-fromresolve-globalreusifyretresolve-urlrimrafrestore-cursorretryresponselikerun-parallelrun-asyncrsvprx-litesafe-bufferrx-lite-aggregatessanesafe-regexsafer-buffersaxsemversaxesschedulersemver-diffserialize-errorserve-staticsendsetprototypeofsetimmediateshallow-cloneset-valueset-blockingshebang-commandshebang-regexshelljsside-channelshell-quoteshellwordssignal-exitsimple-plistslashsnapdragonslice-ansisisteransisnapdragon-utilsource-mapsource-map-resolvesnapdragon-nodesource-map-supportspdx-license-idssource-map-urlsplitspdx-expression-parsesplit-on-firstspdx-exceptionsspdx-correctsplit-stringstackframesprintf-jsstack-utilssplit2static-extendstacktrace-parserstring-lengthstatusesregistry-urlstring-widthstream-buffersstring.prototype.trimstartstring_decoderstring.prototype.matchallstrip-bomstring.prototype.trimendstrip-final-newlinestrip-ansistrip-eofstrip-indentstrip-json-commentssupports-hyperlinkssudo-promptsupports-colortablesupports-preserve-symlinks-flagsymbol-treeterminal-linktemptemp-dirtemp-writetest-excludetext-extensionstext-tablethrough2time-stampthroughthroatto-readable-streamto-object-pathto-fast-propertiestmptmpltoidentifierto-regextough-cookieto-regex-rangetr46trim-newlinestslibtsutilstype-detecttype-festtypedarrayuglify-estypedarray-to-bufferua-parser-jsuglify-jsultronunc-path-regexunbox-primitiveunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-property-aliases-ecmascriptunicode-match-property-value-ecmascriptunique-stringunion-valuerxjsunpipeunset-valueuniversalifyuri-jsupdate-notifieruniversal-user-agenturixurl-joinstrict-uri-encodeuseurl-parse-laxuuiduse-subscriptionv8-compile-cacheutils-mergeutil-deprecatev8-to-istanbulvalidate-npm-package-licensew3c-hr-timevaryvlqw3c-xmlserializerwalkerwhatwg-fetchwhatwg-encodingwebidl-conversionswhatwg-mimetypewcwidthwhatwg-urlwhichwindows-releasewidest-linewhich-boxed-primitivewhich-modulewildcard-matchword-wrapwrap-ansiwordwrapwrappywsxcodewrite-file-atomicxdg-basedirxmlbuilderxtendxml-name-validatorxmlcharsxmldocyamltype-checkyallistyargs-parserxpipey18nyocto-queueyargs
0.3.0

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago