marcocesarato / react-native-input-spinner

An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
https://marcocesarato.github.io/react-native-input-spinner/
GNU General Public License v3.0
415 stars 34 forks source link

Fatal error: Invariant Violation: "outlineWidth" is not a valid style property. #30

Closed taeh98 closed 3 years ago

taeh98 commented 3 years ago

I am getting an invariant violation which I am assuming is from this library because the error matches the buttonRounded stylesheet in /src/Style.js. It is a fatal error that stops the application starting.The error I get is as follows:

Unable to start your application. Please refer to https://expo.fyi/no-registered-application for more information.

Invariant Violation: "outlineWidth" is not a valid style property. StyleSheet buttonRounded: { "alignItems": "center", "justifyContent": "center", "borderRadius": 999, "outlineWidth": 0 } Valid style props: [ "alignContent", "alignItems", etc

This error happens running locally on an Android device with Expo. Please could you fix this? Thank you!

taeh98 commented 3 years ago

Update: I tried editing Style.js and was able to stop the error. After removing the outlineWidth property from buttonRounded, the same error appears for numberText, which has the same property. After removing it from numberText, there is no longer an error. I'll make a pull request and let you see if it has any other effects I'm unaware of.

taeh98 commented 3 years ago

Update: I made a pull request with the changes I made that fixed the issue (at least for me) that I described before here: https://github.com/marcocesarato/react-native-input-spinner/pull/31

marcocesarato commented 3 years ago

Fixed on v1.4.8. Thanks for report the issue.