1.2.8 • Published 4 days ago

@dramaorg/reprehenderit-nemo-laboriosam v1.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

@dramaorg/reprehenderit-nemo-laboriosam

Build Status Codecov Npm Version Npm Downloads

A simple and reusable React-Native error boundary component 🐛

Install

yarn add @dramaorg/reprehenderit-nemo-laboriosam

Documentation

API

ErrorBoundary

These are the props that you can pass to the ErrorBoundary component:

PropertyTypeRequiredDefault
ChildrenReact.Childrentrue
FallbackComponentReact.ComponentfalseFallbackComponent
onErrorFunctionfalse

Children

Any children that can throw an error.

FallbackComponent

The fallback component that will be rendered after catching an error. By default the library comes with a built-in component.

onError

A function that receives two arguments:

  • error: The error catched by the component.
  • stackTrace: The stacktrace of the error.
onError(error: Error, stackTrace: string): void

FallbackComponent

These are the props that the FallbackComponent receives:

PropertyTypeDefault
errorError
resetErrorFunction

error

The error object.

resetError

A function to reset the error state. You'll want to call this function to recover from the error state.

resetError(): void

Demo

rmES2017formatjapanesewritableinspectWeakMaproutingvaluesmatches.envhas-ownwritedatapackagesmakegetoptsqs0mime-dbArrayBuffer#sliceBigInt64ArraycodesdefaultmetadataisConcatSpreadableformsconfigurablelockfiletoArraytypedshebangRFC-6455koreaniterationjsxprunematchAllcircularcloudsearchanimationzeroes2018command-lineremovecharactersObject.keyselectron256nativeprettydataViewECMAScript 7Object.getPrototypeOfcopydeepcloneswfeventDispatcheravatypeerrorfunctionmkdirseslintpluginrmdirgetOwnPropertyDescriptorcharactershimglobUint32Arraycallvarsfullcode pointsfastcopymimetypesReflect.getPrototypeOfarrayoffsetmapreduceoncefpsJSON-Schemarm -rfreact-testing-libraryworkertc39browserslistenderinputcontainsjsargparsearktypeArray.prototype.findLastIndexArray.prototype.flatMapFloat32ArrayreactratedragawaitbyteLengthdotenvformicufetchspeedrandomcurltasklibphonenumberinidworkflowconcatMapownpatchgesturesvalueUint16ArrayECMAScript 2017fullwidthiteratecliidentifierswgetcreateec2agentECMAScript 2023ECMAScript 5streamsECMAScript 2021robustES5fsperformancedom-testing-librarygetintrinsices2015indicatordeletetostringtagelbtapglobalssesYAMLtslibargumentshardlinksdeepcopybdduuidextraString.prototype.matchAllshelldynamodbshrinkwrapObservableautoscalingES2021xtermwhichwalkingdescriptorprotocol-bufferstapeMapES2020awsreduceutil.inspectimportdebugpackage managerObject.valuesdeterministicflagcollection.es6immerstreams2promisesdefinePropertyES2016es6typescriptsetterhasOwnfigletkeysforEachconfiginvariantregular expressioncommanderclass-validatorcolorsestreenumberomitfunctionswidthframeworkpicomatchcensorwafes7stdlibimmutablebluebirdtrimpnpm9openerscheme-validationeventspluginserializationSymbollinewrapmkdirtoStringTagstarterobjectspawncallbackdebuggergetwebsiteconsoletddinstallstylespopmotionMicrosoftenvironmentsflatteninternal slotconvertes8executableES2022lastperformantlaunchgetPrototypeOfreact-hooksURLbeanstalklintcloudformationrequestwalkpropertyfastclonefast-copyUint8ClampedArraynpmESnextFloat64ArrayObject.definePropertytypesafeprogressemrarraybufferwhatwgefficienthelpersconcatmkdirpes-shim APIes2016fast-deep-cloneArraysymbolmomentECMAScript 2020outputratelimitinstallerbreakes5fast-deep-copynodecloudtrailfastifyhasOwnPropertyArrayBuffertrimRightvalida11ylooksuperstructRegExp.prototype.flagsextensionArray.prototype.filterlanguageelasticachefromespreequerystringes-abstractfunctionaljavascriptequalityjshintduplexcall-boundqueueMicrotaskiconvbyte__proto__preserve-symlinksoptimizersafeECMAScript 2022reusehashECMAScript 2019settingschannelairbnbwrapdirpositivenodejsmatchredux-toolkitfindLastexedependenciesdirectoryArray.prototype.includesreadmrustyleregularapibannerjsontouchvestassignECMAScript 2016ArrayBuffer.prototype.sliceecmascript$.extendpyyamltimearraysutilityObject.entriesES3private datacolourtestinggroupflatqueueloadingjQueryFunction.prototype.nameiteratorhookformObject.ispathstatelesscolumnsvalidationrapidmoduleschemaexpressroutetextHyBiprototypeendpointpipemoveargsyupeslint-plugindependency managermimeaccessorreadablestreamtypesruntimemonorepospinnerObjectrecursiveemojiObject.fromEntriesbundlerartparentscoreJSONrgbspringflagsStyleSheetdataviewdomCSSStyleDeclarationObservablesdayjsbrowserqsreact posekinesisserializersearchassertiefiletraverserdssymlinksArray.prototype.findLastes-shimsnameemitguideslintES6asyncphonefind-upUnderscoreponyfillsharedarraybufferkarmadatastructuresyntaxlimitedcss-in-jscjkyamlargvpushsuperagentutilitiesdeep-copymulti-packagefast-clonefastdropWebSocketsgdprmapframerhookstypeofchildi18nuninstallcloudfronteditorstringifierdatediffmodulesboundlook-uptermES2019chromeArray.prototype.flatArray.prototype.flattencoerciblecommandajvchromiumjestweaksetbyteOffsetopenURLSearchParamslistenerssameValueZero-0iamwarningPushstringpackageflatMaphttpsReactiveExtensionsInt8Arrayparentstyled-componentsform-validationreducernamesnegative zerourlcall-bindtypetakeminimalcomparecryptozodcompilertoSorteddeepvpcfilterwordwrapRegExp#flagsbufferl10npersistentreal-timeparsinges2017ECMAScript 6parserES7typanionUint8ArrayInt16ArraypromiseawesomesaucehelperxhrincludeseventEmitters3groupBygraphqlassertionappfindupECMAScript 3descriptorsnegativeaststructuredClonelazyrfc4122buffersfindbusyhasthroatglacierpropertiestoobjectintrinsicreact-hook-formfull-widthamazondeep-clonebrowserlistCSSstylingmobileansiTypedArrayeslintconfigprefixsideloadbalancingReactiveXcharsetcss[[Prototype]]Streamslot3dtrimEndtoolkitiscacheworkspace:*jasminetrimStartuptspropproxyutilconsumeredactvisualebscmdinference@@toStringTagfunction.lengthclonetesterkeyasciiessimpledbthreeRxJSassertsargumentshamroute53WebSocketrangeerror_.extendescapeBigUint64Arrayrm -frpackage.jsonES2015requireprotobufexpressionjsdomreact animationcheckregexpwaitES2018accessibilitycallboundio-tsjoiinternaltypedarraysfoldererrorthrottlepostcss-pluginES8linksetstreamterminaltypedarraywordbreakgenericsString.prototype.trimchineseSymbol.toStringTagjsdiffstringifyenvbatchbundlingspinnersAsyncIteratorspecajaxxdg-openstartstableopensoptimistvariablesurlssharedprotounicodeweakmapsortcolumngetterdescriptiondefineclientwebqueryvieweast-asian-widthsequenceregextesttoolsRxparseidlesomechaiWeakSettelephoneSetxdgformattingbindttyObject.assignstyleguideeveryresolvemergelimitoptionfixed-widthprivatejsonpathhttpregular expressionstyped arrayposeenvironmenttrimLeftfile systemlrucolorglobalmake dircore-jscallbindloggerlogginglengthsymbolsimportexportobjIteratorsetPrototypeOfnopeautoprefixerlogArray.prototype.containsreduxschemestoragegatewayredirectInt32ArrayPromisesnsvalidatecloudwatchsetImmediateexeclocationpolyfillsliceTypeBoxsortedwaapiprocessconcurrency
1.2.8

4 days ago

1.2.7

5 days ago

1.2.6

6 days ago

1.2.5

7 days ago

1.1.5

8 days ago

1.1.4

9 days ago

1.1.3

10 days ago

1.1.2

11 days ago

1.1.1

12 days ago

1.0.1

13 days ago