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

@kitten-team/react-native-sortable-grid

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitten-team/react-native-sortable-grid - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

3

index.js

@@ -282,3 +282,4 @@ import * as React from 'react'

let blockIndex = _.findIndex(this.itemOrder, item => item.order === order)
let x = (order * this.state.blockWidth) % (this.itemsPerRow * this.state.blockWidth)
const columnOnRow = order % this.itemsPerRow;
const x = columnOnRow * this.state.blockWidth;
let y = Math.floor(order / this.itemsPerRow) * (this.state.blockHeight + ROW_MARGIN)

@@ -285,0 +286,0 @@ this.state.blockPositions[blockIndex].origin = {x, y}

@@ -8,3 +8,3 @@ {

],
"version": "2.1.0",
"version": "2.1.1",
"description": "Drag-and-drop sortable grid view for React Native.",

@@ -11,0 +11,0 @@ "main": "index.js",

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