Rewriten modules from maxto024/get-subnet-mask, using create-react-native-module
$ npm install react-native-get-subnet-mask --save
$ react-native link react-native-get-subnet-mask
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
MIT