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

Nothing happens #27

Open
GabeConsalter opened this issue Aug 9, 2019 · 4 comments
Open

Nothing happens #27

GabeConsalter opened this issue Aug 9, 2019 · 4 comments
Labels
question Further information is requested

Comments

@GabeConsalter
Copy link

Hi.
I made an app to try use Ekke and I'm having a problem that when I run it nothing happens.

image

Waiting minutes and nothing changes in console, what could be happening?

@3rd-Eden
Copy link
Contributor

Sorry for the lack of responses from my side here. It seems like these issues have slipped through while I was on vacation.

What I'm guessing here is that you didn't start the iOS simulator , or android simulator your self. The project doesn't start it automatically for you as I made the assumption that most people will have that running already.

@3rd-Eden 3rd-Eden added the question Further information is requested label Aug 21, 2019
@GabeConsalter
Copy link
Author

Hi @3rd-Eden, thank you for the response and sorry for the delay.
I'm running test with app running on android device.

@3rd-Eden
Copy link
Contributor

@GabeConsalter Are you running it on a physical device or an emulator? We currently follow the recommendations of the official Android simulator to use 10.0.2.2 as host loopback interface: https://developer.android.com/studio/run/emulator-networking so the <Ekke /> component in your app can communicate with your machine, if this address is different for you, or if you are using a physical device you might need to override the default hostname that we attempt to access:

You can configure this by supplying a hostname prop to the <Ekke /> component with the correct hostname or IP address over which it can communicate with your machine that started the ekke CLI to the tests:

<Ekke hostname="192.168.1.2" />

@GabeConsalter
Copy link
Author

GabeConsalter commented Aug 28, 2019

@3rd-Eden make sense but didn't work for me.

I was trying on a physical android device and now I tried on an android emulator.
When I run react-native run-android I've the connection info:

...
info Starting the app on "192.168.56.103:5555"...
...

So I changed my App to:

const App = () => {
  return (<>
    <Ekke hostname="192.168.56.103" port={5555} />
    <View>
      <Text>Ekke test</Text>
    </View>
  </>);
};

When I run test nothing happens again.

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

No branches or pull requests

2 participants