![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
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 33 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.