New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-screen-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-screen-keyboard - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

2

package.json
{
"name": "react-native-screen-keyboard",
"version": "1.1.1",
"version": "1.2.0",
"description": "On-screen keyboard with customisable keys and tactile / UI feedback 📱",

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

@@ -183,8 +183,11 @@ /**

// Decide if the element passed as the key is text
const keyJsx = keyboardFuncSet[row][column] ? (
<Image style={[keyImageDefaultStyle, keyImageStyle]} source={entity} />
) : (
<Text style={[keyTextDefaultStyle, keyTextStyle]}>{entity}</Text>
);
// Decide what type of element is passed as the key
let keyJsx;
if (React.isValidElement(entity)) {
keyJsx = entity;
} else if (keyboardFuncSet[row][column]) {
keyJsx = <Image style={[keyImageDefaultStyle, keyImageStyle]} source={entity} />;
} else {
keyJsx = <Text style={[keyTextDefaultStyle, keyTextStyle]}>{entity}</Text>;
}

@@ -191,0 +194,0 @@ // We want to block keyboard interactions if it has been disabled.

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