Socket
Socket
Sign inDemoInstall

react-native-keyboard-spacer

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-keyboard-spacer - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

8

KeyboardSpacer.js

@@ -62,6 +62,8 @@ /**

return;
var keyboardSpace = frames.endCoordinates.height + ('topSpacing' in this.props ? this.props.topSpacing : 0);
this.setState({
keyboardSpace: frames.endCoordinates.height + ('topSpacing' in this.props ? this.props.topSpacing : 0),
keyboardSpace: keyboardSpace,
isKeyboardOpened: true
}, () => ('onToggle' in this.props ? this.props.onToggle(true) : null));
}, () => ('onToggle' in this.props ? this.props.onToggle(true, keyboardSpace) : null));
}

@@ -73,3 +75,3 @@

isKeyboardOpened: false
}, () => ('onToggle' in this.props ? this.props.onToggle(false) : null));
}, () => ('onToggle' in this.props ? this.props.onToggle(false, 0) : null));
}

@@ -76,0 +78,0 @@

{
"name": "react-native-keyboard-spacer",
"version": "0.1.5",
"version": "0.1.6",
"description": "Plug and play react-Native keyboard spacer view.",

@@ -5,0 +5,0 @@ "main": "KeyboardSpacer.js",

@@ -58,2 +58,2 @@ [![NPM](https://nodei.co/npm-dl/react-native-keyboard-spacer.png?months=3&height=2)](https://nodei.co/npm/react-native-keyboard-spacer/)

| :------------ |:---------------:| :---------------:| :-----|
| onToggle | `toggleState` | `function` | onToggle method is called when when keyboard toggles. Returns true or false |
| onToggle | `toggleState` | `function` | onToggle method is called when when keyboard toggles. Two parameters passed through, keyboardState (boolean, true if keyboard shown) and keyboardSpace (height occupied by keyboard) |
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