Skip to content

calceytechnologies/react-native-local-network-permission

 
 

Repository files navigation

React Native Local Network Permission

A temporary lib to handle the local network permission after iOS 14

Getting started

$ npm install react-native-local-network-permission

$ yarn add react-native-local-network-permission

Usage

import { checkLocalNetworkAccess, requestLocalNetworkAccess } from 'react-native-local-network-permission';

//you need to make sure the local network permission dialog popup once
const result = await requestLocalNetworkAccess();

//then use checkLocalNetworkAccess when you need
const result = await checkLocalNetworkAccess();
//here run the code depends local network access

About

A temporary lib to handle the local network permission after iOS 14.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 49.0%
  • JavaScript 20.1%
  • TypeScript 17.5%
  • Ruby 10.7%
  • Shell 2.7%