oblador / react-native-progress

Progress indicators and spinners for React Native
MIT License
3.62k stars 515 forks source link

Exception in HostFunction: Malformed calls from JS: field sizes are different. #224

Closed StevieCode closed 3 years ago

StevieCode commented 3 years ago

Does anyone have the same issue?

StevieCode commented 3 years ago

Putting expression in the progress prop causes the issue. Solved by creating a function that returns the expression value.

cloudworkpro-hassen commented 3 years ago

this just started giving me problems not sure what to do I did it two different ways

      <Progress.Bar
        // progress={(currentStep && currentStep * 10) / 100} <=-=currentStep is a state
        progress={step()}
        width={350}
        height={15}
        borderRadius={200}
        color="#F59E0B"
        borderColor="#E5E5E5"
        unfilledColor="#FFFFFF"
      />

step() is just a function that return the state but I am still getting the same result

Aloynz commented 2 years ago

has anyone resolved this issue?

Phong-TH commented 1 year ago

@Aloynz the value put to progress props is NaN causes the issue, just forcing it to 0 if NaN