react-native-ping icon indicating copy to clipboard operation
react-native-ping copied to clipboard

ReactNative in Expo

Open jamg26 opened this issue 3 years ago • 2 comments

`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 ( <> <Text>Hi</Text> </> ); };

export default Home; `

RESPONSE: null is not an object (evaluating 'RNReactNativePing.start')

jamg26 avatar Apr 11 '21 12:04 jamg26

The way expo is integrated, I didn't test, is there any expo developer to help me

RoJoHub avatar Aug 23 '23 02:08 RoJoHub

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

Charles-Johnson avatar Dec 29 '23 05:12 Charles-Johnson