wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.53k stars 712 forks source link

NumberInput text.replaceAll is not a function error #2567

Closed halenur closed 1 year ago

halenur commented 1 year ago

Description

I've have react native cli app. When I try to use NumberInput component, component gives error when typing.

import { NumberInput } from 'react-native-ui-lib';

function MyComp() {
   return (
         <NumberInput
            label="price"
            placeholder="placeholder"
            onChangeNumber={(e) => console.log('onChangeNumber', e)}
          />
   )
}

Error is:

TypeError: text.replaceAll is not a function. (In 'text.replaceAll(options.localeOptions.thousandSeparator, '')', 'text.replaceAll' is undefined)

Related to

Steps to reproduce

  1. Click to NumberInput component
  2. Type something
  3. See error

Expected behavior

Actual behavior

More Info

Screenshots/Video

Screenshot_1681808446 | 10

Environment

Affected platforms

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

trofima commented 1 year ago

Hi. I can't reproduce it. Can you please check if it still reproduces on the latest version?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.