function renderGridViewWithTestItems(rowCount, columnCount, props) {
    const renderItem = index => <Text key={index}>Test item {index}</Text>;
    const tree = renderer.create(<GridView
      rowsCount={rowCount}
      itemsPerRow={columnCount}
      renderItem={renderItem}
      {...props}
    />);
    expect(tree.toJSON()).toMatchSnapshot();

    return tree;
  }
/**
   * @desc Common function to render grid view with specific size.
   * @param {number} rowCount Count of rows in grid view.
   * @param {number} columnCount Count of columns in grid view.
   * @param {any} props Other props to pass to grid view.
   * @return {React.Component} Created GridView render tree.
   */
@desc Common function to render grid view with specific size.
@param {number} rowCount Count of rows in grid view.
@param {number} columnCount Count of columns in grid view.
@param {any} props Other props to pass to grid view.
@return {React.Component} Created GridView render tree.
@desc Common function to render grid view with specific size . @param { number } rowCount Count of rows in grid view . @param { number } columnCount Count of columns in grid view . @param { any } props Other props to pass to grid view . @return { React . Component } Created GridView render tree .
function renderGridViewWithTestItems(rowCount, columnCount, props) {
    const renderItem = index => <Text key={index}>Test item {index}</Text>;
    const tree = renderer.create(<GridView
      rowsCount={rowCount}
      itemsPerRow={columnCount}
      renderItem={renderItem}
      {...props}
    />);
    expect(tree.toJSON()).toMatchSnapshot();
    return tree;
  }
function renderGridViewWithTestItems ( rowCount , columnCount , props ) { const renderItem = index => < Text key = { index } > Test item  { index } < / Text > ; const tree = renderer . create ( < GridView rowsCount = { rowCount } itemsPerRow = { columnCount } renderItem = { renderItem } { ... props } / > ) ; expect ( tree . toJSON ( ) ) . toMatchSnapshot ( ) ; return tree ; }
@desc Common function to render grid view with specific size.
@desc Common function to render grid view with specific size .