File tree Expand file tree Collapse file tree
packages/carbon-react-native Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @audira/carbon-react-native" ,
3- "version" : " 1.0.0-beta.23 " ,
3+ "version" : " 1.0.0-beta.24 " ,
44 "license" : " MIT" ,
55 "homepage" : " https://rakadoank.github.io/carbon-react-native" ,
66 "repository" : " https://github.com/RakaDoank/carbon-react-native" ,
Original file line number Diff line number Diff line change @@ -121,17 +121,24 @@ function getTextStyle(
121121 return null
122122 }
123123
124+ const
125+ typographyStyle =
126+ TypographyStyleSheet [ type ] ,
127+
128+ weight =
129+ StyleSheetObj . Typography [ type ] . fontWeight
130+
124131 if ( italic && overrideWeight ) {
125- return [ TypographyStyleSheet [ type ] , mapFamilyItalicStyle [ overrideWeight ] ]
132+ return [ typographyStyle , mapFamilyItalicStyle [ overrideWeight ] ]
126133 }
127134
128135 if ( italic ) {
129- return [ TypographyStyleSheet [ type ] , mapFamilyItalicStyle [ StyleSheetObj . Typography [ type ] . fontWeight ] ]
136+ return [ typographyStyle , mapFamilyItalicStyle [ weight ] ]
130137 }
131138
132139 if ( overrideWeight ) {
133- return [ TypographyStyleSheet [ type ] , mapFamilyStyle [ overrideWeight ] ]
140+ return [ typographyStyle , mapFamilyStyle [ overrideWeight ] ]
134141 }
135142
136- return TypographyStyleSheet [ type ]
143+ return [ typographyStyle , mapFamilyStyle [ weight ] ]
137144}
You can’t perform that action at this time.
0 commit comments