Open jamg26 opened 3 years ago
The way expo is integrated, I didn't test, is there any expo developer to help me
I assume @jamg26 was running their app on Expo Go. If you are on a managed workflow, then you'll need to build a development client using eas build
and run the app on that. That's what has worked for me
`import React from "react"; import { Text } from "native-base"; import Ping from "react-native-ping";
const Home = (props) => { React.useEffect(() => { (async () => { try { const ms = await Ping.start("114.114.114.114", { timeout: 1000 }); console.log(ms); } catch (error) { console.log(error.message); } })(); }, []);
return ( <>
); };
export default Home; `