torgeadelin/react-native-animated-nav-tab-bar

Expected style "fontSize: 14" to contain units warning from styled components

rahmanharoon opened this issue · 2 comments

Here is the warning message which comes from styled components

Expected style "fontSize: 14" to contain units  at StyledNativeComponent

Simulator Screen Shot - iPhone 12 mini - 2022-01-05 at 16 27 48

I added the 'px' suffix after the fontSize in the file node_modules/react-native-animated-nav-tab-bar/dist/lib/index.js (line 193) and the warning was gone.
Here is the code after adding

var Label = Styled__default["default"](reactNative.Animated.Text)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\tfontSize: ", "px;\n\tcolor: ", ";\n\tmargin-left: ", "px;\n"], ["\n\tfontSize: ", "px;\n\tcolor: ", ";\n\tmargin-left: ", "px;\n"])), function (p) {

Fixed, please update to 3.1.8