react-native-airship
Advanced tools
+4
-0
| # react-native-airship | ||
| ## 0.2.12 (2023-07-07) | ||
| - fixed: Make the barometer component non-accessible. | ||
| ## 0.2.11 (2022-12-19) | ||
@@ -4,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
| import * as React from 'react'; | ||
| /// <reference types="react" /> | ||
| import { Offset, Padding } from '../util/sides'; | ||
@@ -8,3 +8,2 @@ export interface BarometerLayout { | ||
| interface Props { | ||
| children?: React.ReactNode; | ||
| onLayout?: (layout: BarometerLayout) => void; | ||
@@ -11,0 +10,0 @@ } |
@@ -22,3 +22,3 @@ import * as React from 'react'; | ||
| export function Barometer(props) { | ||
| const { children, onLayout = () => { } } = props; | ||
| const { onLayout = () => { } } = props; | ||
| // Mutable state: | ||
@@ -108,6 +108,6 @@ const keyboardHeight = React.useRef(0); | ||
| if (Platform.OS === 'android') { | ||
| return (React.createElement(View, { ref: view, onLayout: handleLayout, pointerEvents: "none", style: StyleSheet.absoluteFill, testID: "AirshipBarometer" }, children)); | ||
| return (React.createElement(View, { ref: view, accessible: false, pointerEvents: "none", style: StyleSheet.absoluteFill, onLayout: handleLayout })); | ||
| } | ||
| return (React.createElement(SafeAreaView, { ref: view, onLayout: handleLayout, pointerEvents: "none", style: StyleSheet.absoluteFill, testID: "AirshipBarometer" }, | ||
| React.createElement(View, { ref: childView, style: { flex: 1 }, testID: "AirshipBarometerChild" }, children))); | ||
| return (React.createElement(SafeAreaView, { ref: view, accessible: false, pointerEvents: "none", style: StyleSheet.absoluteFill, onLayout: handleLayout }, | ||
| React.createElement(View, { ref: childView, accessible: false, style: { flex: 1 } }))); | ||
| } |
+1
-1
| { | ||
| "name": "react-native-airship", | ||
| "version": "0.2.11", | ||
| "version": "0.2.12", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "description": "Flexible toolkit for building modals & alerts", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%36995
-0.04%646
-0.15%