
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
expo-proximity
Advanced tools
Provides access to the system's proximity sensor.
For managed Expo projects, run following command:
npx expo install expo-proximity
For bare React Native projects, you must ensure that you have installed and configured the expo
package before continuing.
npm install expo-proximity
Run npx pod-install
after installing the npm package.
import {
isAvailableAsync,
getProximityState,
isActivated,
addProximityStateListener,
deactivate,
activate,
useProximity,
} from 'expo-proximity'
useProximity()
const { proximityState, isActivated } = useProximity()
getProximityState()
Get if an object is near the sensor or not.
Returns: boolean
isActivated()
Get if the sensor is activated or not.
Returns: boolean
addProximityStateListener(listener: (event: ProximityStateChangeEvent) => void)
Method to add a listener on proximity state change event.
Returns: NativeEventSubscription
deactivate()
Method to deactivate the sensor.
Returns: Promise<void>
activate()
Method to activate the sensor.
Returns: Promise<void>
Contributions are very welcome! Please refer to guidelines described in the contributing guide.
FAQs
Provides access to the system's proximity sensor.
The npm package expo-proximity receives a total of 44 weekly downloads. As such, expo-proximity popularity was classified as not popular.
We found that expo-proximity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.