Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-grid-list

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-grid-list - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"name": "react-native-grid-list",
"version": "1.0.8",
"version": "1.0.9",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -25,3 +25,3 @@ import React, { PureComponent } from 'react';

const { data } = props;
if (!props[propName] && data && data.length === 0) {
if (!props[propName] && !data) {
return new Error('Invalid props, `data` or `children` is required');

@@ -38,2 +38,3 @@ }

numColumns: 3,
data: [],
itemStyle: {},

@@ -40,0 +41,0 @@ showSeparator: false,

@@ -20,2 +20,12 @@ import { shallow } from 'enzyme';

});
it('renders empty list', () => {
const wrapper = shallow(
<GridList
data={[]}
renderItem={({ item }) => <Image source={item.thumbnail} />}
/>,
);
expect(wrapper).toMatchSnapshot();
});

@@ -22,0 +32,0 @@ it('renders showSeparator', () => {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc