@@ -15,7 +15,7 @@ import { rendererLog as traceLog } from "./trace";
1515
1616const IOS_PREFX : string = ":ios:" ;
1717const ANDROID_PREFX : string = ":android:" ;
18- const XML_ATTRIBUTES = Object . freeze ( [ "style" , "row " , "columns" , "fontAttributes" ] ) ;
18+ const XML_ATTRIBUTES = Object . freeze ( [ "style" , "rows " , "columns" , "fontAttributes" ] ) ;
1919const whiteSpaceSplitter = / \s + / ;
2020
2121export type ViewExtensions = ViewExtensions ;
@@ -146,10 +146,6 @@ export class ViewUtil {
146146 return view ;
147147 }
148148
149- private isXMLAttribute ( name : string ) : boolean {
150- return XML_ATTRIBUTES . indexOf ( name ) !== - 1 ;
151- }
152-
153149 private platformFilter ( attribute : string ) : string {
154150 let lowered = attribute . toLowerCase ( ) ;
155151 if ( lowered . indexOf ( IOS_PREFX ) === 0 ) {
@@ -230,7 +226,7 @@ export class ViewUtil {
230226
231227 if ( attributeName === "class" ) {
232228 this . setClasses ( view , value ) ;
233- } else if ( this . isXMLAttribute ( attributeName ) ) {
229+ } else if ( XML_ATTRIBUTES . indexOf ( attributeName ) !== - 1 ) {
234230 view . _applyXmlAttribute ( attributeName , value ) ;
235231 } else if ( propMap . has ( attributeName ) ) {
236232 // We have a lower-upper case mapped property.
0 commit comments