Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactNative in Expo #70

Open
jamg26 opened this issue Apr 11, 2021 · 2 comments
Open

ReactNative in Expo #70

jamg26 opened this issue Apr 11, 2021 · 2 comments

Comments

@jamg26
Copy link

jamg26 commented Apr 11, 2021

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

export default Home;
`

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

@RoJoHub
Copy link
Owner

RoJoHub commented Aug 23, 2023

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

@Charles-Johnson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants