1.0.0 • Published 4 years ago
react-native-get-subnet-mask v1.0.0
react-native-get-subnet-mask
Rewriten modules from maxto024/get-subnet-mask, using create-react-native-module
Getting started
$ npm install react-native-get-subnet-mask --save
Mostly automatic installation
$ react-native link react-native-get-subnet-mask
Usage
import GetSubnetMask from 'react-native-get-subnet-mask';
// TODO: What to do with the module?
GetSubnetMask;
getSubnet() return the subnet mask value.
import SubnetmaskModule from ‘get-subnet-mask’;
SubnetmaskModule.getSubnet((sb) => {
console.log(sb);
});
getIpV4() return the IP value.
import SubnetmaskModule from ‘get-subnet-mask’;
SubnetmaskModule.getIpV4((ip) => {
console.log(ip);
});
##Install
npm install get-subnet-mask
react-native link
License
MIT
1.0.0
4 years ago