react-native-progress icon indicating copy to clipboard operation
react-native-progress copied to clipboard

Bar width property

Open Crysp opened this issue 6 years ago • 5 comments

To set full width i need to pass null but declaration accept only numbers

Crysp avatar Sep 04 '18 16:09 Crysp

try delete justifyContent: 'center' or alignItems: 'center' in the wrapper view. It's work for me

15520065 avatar Nov 26 '18 15:11 15520065

               <Progress.Bar
                style={{width: underfined}}
                progress={this.state.progress}
                indeterminate={false}
                height={2}
                borderRadius={0}
              />

Its work for me

nghiatv avatar Jan 16 '19 04:01 nghiatv

Having the same issue. Both above mentioned answers does not work for me. (undefined is doing nothing?)

Passing null works fine and is the way to go according to the documentation. Problem: It is only typed to numbers and undefined.

To make it work I am using // @ts-ignore currently. But I do not like to be in need of using this. Can you please fix the typing of this?

MGeuecke avatar Mar 18 '19 16:03 MGeuecke

I'm using

import {Dimensions} from "react-native";
import ProgressBar from "react-native-progress/Bar";
const barWidth = Dimensions.get("screen").width;
<ProgressBar progress={0.1} width={barWidth} height={2} borderRadius={0}/>

ahmadsyamim avatar Jan 09 '20 01:01 ahmadsyamim

I'm using

import {Dimensions} from "react-native";
import ProgressBar from "react-native-progress/Bar";
const barWidth = Dimensions.get("screen").width;
<ProgressBar progress={0.1} width={barWidth} height={2} borderRadius={0}/>

It's not really true if you rotate the device screen @@

thanhluantl2304 avatar May 25 '20 06:05 thanhluantl2304