Skip to content

Android: LinearProgress component fails to render when value given #34

@bumpah

Description

@bumpah

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

  1. Import Linear progresss from /themed and render it with given value.
import {LinearProgress} from '@rn-vui/themed';

<LinearProgress
  value={0.5}
  variant="determinate"
/>
  1. Gives error about loss of precision during conversion
console.js:654 Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long) 0.5

Expected behavior

Should render component with given value

Describe the bug

Android should use different type for this value

Steps To Reproduce

1. Import component 
2. Render it and provide value (eq. `value={0.5}`)
3. Android will give error

Screenshots

No response

Your Environment

`npx @rn-vui/envinfo`
  ```
    Output from `npx @rn-vui/envinfo` goes here.
  ```

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions