@@ -15,7 +15,7 @@ import { rendererLog as traceLog } from "./trace";
15
15
16
16
const IOS_PREFX : string = ":ios:" ;
17
17
const ANDROID_PREFX : string = ":android:" ;
18
- const XML_ATTRIBUTES = Object . freeze ( [ "style" , "row " , "columns" , "fontAttributes" ] ) ;
18
+ const XML_ATTRIBUTES = Object . freeze ( [ "style" , "rows " , "columns" , "fontAttributes" ] ) ;
19
19
const whiteSpaceSplitter = / \s + / ;
20
20
21
21
export type ViewExtensions = ViewExtensions ;
@@ -146,10 +146,6 @@ export class ViewUtil {
146
146
return view ;
147
147
}
148
148
149
- private isXMLAttribute ( name : string ) : boolean {
150
- return XML_ATTRIBUTES . indexOf ( name ) !== - 1 ;
151
- }
152
-
153
149
private platformFilter ( attribute : string ) : string {
154
150
let lowered = attribute . toLowerCase ( ) ;
155
151
if ( lowered . indexOf ( IOS_PREFX ) === 0 ) {
@@ -230,7 +226,7 @@ export class ViewUtil {
230
226
231
227
if ( attributeName === "class" ) {
232
228
this . setClasses ( view , value ) ;
233
- } else if ( this . isXMLAttribute ( attributeName ) ) {
229
+ } else if ( XML_ATTRIBUTES . indexOf ( attributeName ) !== - 1 ) {
234
230
view . _applyXmlAttribute ( attributeName , value ) ;
235
231
} else if ( propMap . has ( attributeName ) ) {
236
232
// We have a lower-upper case mapped property.
0 commit comments