Search code examples
vagrantexpocreate-react-native-app

Expo and Vagrant


I am trying to build a react-native-app on a vagrant linux box.

I am trying to access the app on my phone using expo but it just does not work.

Has anyone managed to make this work with port forwarding or something similar?


Solution

  • To make this a little more specific, the vagrant file should include the following line(the ip address is optional): config.vm.network "public_network", ip: "ip address"

    for example:

    1. config.vm.network "public_network"
    2. config.vm.network "public_network", ip: "192.168.1.9"

    Here are a couple of useful links:

    1. Youtube tutorial by sureshkm

    2. Vagrant docs