react-native-ping
react-native-ping copied to clipboard
IOS Thread creation error
*** -[NSThread startAndReturnError:]: Thread creation failed with error 35
for (let i = 1; i < 255; i++) {
try {
const ms = await Ping.start(`${NetworkIPAddressPrefix}.${i}`, { timeout: 50 });
if (ms !== undefined && ms !== null) {
ipsFound.push(`${NetworkIPAddressPrefix}.${i}`);
}
} catch (error : any) {
console.log("ERROR", error);
}
}
"react": "18.2.0",
"react-native": "0.72.6",