Skip to content

Commit

Permalink
fix(lowercase): removed lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipeschulle committed Aug 3, 2023
1 parent 5cb0c80 commit a1be437
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ReactNativeExternalScannerView(context: Context) : ViewGroup(context) {
val eventDispatcherValue = getEventDispatcherForReactTag(reactContext, id)

val eventData = Arguments.createMap()
eventData.putString("value", codeScanned.toString().lowercase())
eventData.putString("value", codeScanned.toString())

eventDispatcherValue?.dispatchEvent(ExternalScannerViewEvent(id, "topOnValueScanned", eventData))
codeScanned.clear()
Expand All @@ -108,7 +108,7 @@ class ReactNativeExternalScannerView(context: Context) : ViewGroup(context) {
val eventDispatcherSingle = getEventDispatcherForReactTag(reactContext, id)

val keyChar = event.unicodeChar.toChar()
val valueInString = keyChar.toString().lowercase()
val valueInString = keyChar.toString()
codeScanned.append(valueInString)

val eventData = Arguments.createMap()
Expand Down

0 comments on commit a1be437

Please sign in to comment.