expo-blur
Advanced tools
Comparing version 6.0.0 to 7.0.0-rc.0
@@ -48,4 +48,5 @@ import PropTypes from 'prop-types'; | ||
accessibilityLabel?: PropTypes.Validator<string | undefined> | undefined; | ||
accessibilityRole?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "keyboardkey" | "adjustable" | "imagebutton" | undefined> | undefined; | ||
accessibilityStates?: PropTypes.Validator<import("react-native").AccessibilityState[] | undefined> | undefined; | ||
accessibilityRole?: PropTypes.Validator<"button" | "header" | "link" | "menu" | "menuitem" | "summary" | "image" | "switch" | "text" | "none" | "search" | "keyboardkey" | "adjustable" | "imagebutton" | "alert" | "checkbox" | "combobox" | "menubar" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "spinbutton" | "tab" | "tablist" | "timer" | "toolbar" | undefined> | undefined; | ||
accessibilityStates?: PropTypes.Validator<import("react-native").AccessibilityStates[] | undefined> | undefined; | ||
accessibilityState?: PropTypes.Validator<import("react-native").AccessibilityState | undefined> | undefined; | ||
accessibilityHint?: PropTypes.Validator<string | undefined> | undefined; | ||
@@ -56,3 +57,3 @@ accessibilityComponentType?: PropTypes.Validator<"button" | "none" | "radiobutton_checked" | "radiobutton_unchecked" | undefined> | undefined; | ||
accessibilityElementsHidden?: PropTypes.Validator<boolean | undefined> | undefined; | ||
accessibilityTraits?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "adjustable" | "selected" | "disabled" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; | ||
accessibilityTraits?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "adjustable" | "disabled" | "selected" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; | ||
onAccessibilityTap?: PropTypes.Validator<(() => void) | undefined> | undefined; | ||
@@ -59,0 +60,0 @@ onMagicTap?: PropTypes.Validator<(() => void) | undefined> | undefined; |
@@ -48,4 +48,5 @@ import PropTypes from 'prop-types'; | ||
accessibilityLabel?: PropTypes.Validator<string | undefined> | undefined; | ||
accessibilityRole?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "keyboardkey" | "adjustable" | "imagebutton" | undefined> | undefined; | ||
accessibilityStates?: PropTypes.Validator<import("react-native").AccessibilityState[] | undefined> | undefined; | ||
accessibilityRole?: PropTypes.Validator<"button" | "header" | "link" | "menu" | "menuitem" | "summary" | "image" | "switch" | "text" | "none" | "search" | "keyboardkey" | "adjustable" | "imagebutton" | "alert" | "checkbox" | "combobox" | "menubar" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "spinbutton" | "tab" | "tablist" | "timer" | "toolbar" | undefined> | undefined; | ||
accessibilityStates?: PropTypes.Validator<import("react-native").AccessibilityStates[] | undefined> | undefined; | ||
accessibilityState?: PropTypes.Validator<import("react-native").AccessibilityState | undefined> | undefined; | ||
accessibilityHint?: PropTypes.Validator<string | undefined> | undefined; | ||
@@ -56,3 +57,3 @@ accessibilityComponentType?: PropTypes.Validator<"button" | "none" | "radiobutton_checked" | "radiobutton_unchecked" | undefined> | undefined; | ||
accessibilityElementsHidden?: PropTypes.Validator<boolean | undefined> | undefined; | ||
accessibilityTraits?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "adjustable" | "selected" | "disabled" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; | ||
accessibilityTraits?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "adjustable" | "disabled" | "selected" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; | ||
onAccessibilityTap?: PropTypes.Validator<(() => void) | undefined> | undefined; | ||
@@ -59,0 +60,0 @@ onMagicTap?: PropTypes.Validator<(() => void) | undefined> | undefined; |
@@ -46,4 +46,5 @@ import PropTypes from 'prop-types'; | ||
accessibilityLabel?: PropTypes.Validator<string | undefined> | undefined; | ||
accessibilityRole?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "keyboardkey" | "adjustable" | "imagebutton" | undefined> | undefined; | ||
accessibilityStates?: PropTypes.Validator<import("react-native").AccessibilityState[] | undefined> | undefined; | ||
accessibilityRole?: PropTypes.Validator<"button" | "header" | "link" | "menu" | "menuitem" | "summary" | "image" | "switch" | "text" | "none" | "search" | "keyboardkey" | "adjustable" | "imagebutton" | "alert" | "checkbox" | "combobox" | "menubar" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "spinbutton" | "tab" | "tablist" | "timer" | "toolbar" | undefined> | undefined; | ||
accessibilityStates?: PropTypes.Validator<import("react-native").AccessibilityStates[] | undefined> | undefined; | ||
accessibilityState?: PropTypes.Validator<import("react-native").AccessibilityState | undefined> | undefined; | ||
accessibilityHint?: PropTypes.Validator<string | undefined> | undefined; | ||
@@ -54,3 +55,3 @@ accessibilityComponentType?: PropTypes.Validator<"button" | "none" | "radiobutton_checked" | "radiobutton_unchecked" | undefined> | undefined; | ||
accessibilityElementsHidden?: PropTypes.Validator<boolean | undefined> | undefined; | ||
accessibilityTraits?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "adjustable" | "selected" | "disabled" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; | ||
accessibilityTraits?: PropTypes.Validator<"button" | "header" | "link" | "summary" | "image" | "text" | "none" | "search" | "adjustable" | "disabled" | "selected" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; | ||
onAccessibilityTap?: PropTypes.Validator<(() => void) | undefined> | undefined; | ||
@@ -57,0 +58,0 @@ onMagicTap?: PropTypes.Validator<(() => void) | undefined> | undefined; |
@@ -23,6 +23,5 @@ import PropTypes from 'prop-types'; | ||
// https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility | ||
// TODO: Bacon: Chrome blur seems broken natively | ||
return typeof CSS !== 'undefined' && CSS.supports('-webkit-backdrop-filter', 'blur(1px)'); | ||
// TODO: Bacon: Chrome doesn't work, RNWeb uses webkit on Safari, which works. | ||
// || CSS.supports('backdrop-filter', 'blur(1px)') | ||
return (typeof CSS !== 'undefined' && | ||
(CSS.supports('-webkit-backdrop-filter', 'blur(1px)') || | ||
CSS.supports('backdrop-filter', 'blur(1px)'))); | ||
} | ||
@@ -29,0 +28,0 @@ function getBlurStyle({ intensity, tint }) { |
{ | ||
"name": "expo-blur", | ||
"version": "6.0.0", | ||
"version": "7.0.0-rc.0", | ||
"description": "A component that renders a native blur view on iOS and falls back to a semi-transparent view on Android. A common usage of this is for navigation bars, tab bars, and modals.", | ||
@@ -11,2 +11,3 @@ "main": "build/index.js", | ||
"clean": "expo-module clean", | ||
"lint": "expo-module lint", | ||
"test": "expo-module test", | ||
@@ -24,3 +25,4 @@ "prepare": "expo-module prepare", | ||
"type": "git", | ||
"url": "https://github.com/expo/expo.git" | ||
"url": "https://github.com/expo/expo.git", | ||
"directory": "packages/expo-blur" | ||
}, | ||
@@ -37,3 +39,3 @@ "bugs": { | ||
"devDependencies": { | ||
"expo-module-scripts": "^1.0.0" | ||
"expo-module-scripts": "~1.1.1-rc.0" | ||
}, | ||
@@ -43,3 +45,3 @@ "unimodulePeerDependencies": { | ||
}, | ||
"gitHead": "9518929d6f2ba9cf8e0aae81d34cc1eb52f7093a" | ||
"gitHead": "5d4fcf318390f59cecd1ae5d191afb15488a4447" | ||
} |
@@ -10,6 +10,8 @@ # expo-blur | ||
# Installation | ||
# Installation in managed Expo projects | ||
This package is pre-installed in [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects. You may skip the rest of the installation guide if this applies to you. | ||
For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release. | ||
# Installation in bare React Native projects | ||
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing. | ||
@@ -16,0 +18,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ComponentProps } from 'react'; | ||
import React, { ComponentProps } from 'react'; | ||
@@ -10,2 +10,4 @@ import BlurViewAndroid from './BlurView.android'; | ||
export default class BlurView extends React.Component<ComponentProps<typeof CommonBlurView>> {} | ||
export default class BlurView extends React.Component< | ||
ComponentProps<typeof CommonBlurView> // eslint-disable-line no-undef | ||
> {} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
46337
35
479
35
0
1