The only required piece of information to render the scene is the position of the eye relative to the phone, which can be represented as an x and y coordinate relative to the rectangular frame captured by the front-facing camera. The accelerometer and gyroscope shouldn’t be needed, except perhaps to smooth out movement of the phone in the user’s hand if the camera’s frame rate is too low.
My guess is that the only reason this demo is relying on the iPhone X is that Apple provides a facetracking API, so there’s no need to write any code or use external libraries to do eyetracking with a normal front facing camera.