I would like to make responsive flat panel - on a mobile device should be in full screen like there
https://tour.croptrust.org/

Is there a possibility to achieve that in react-360.
Here is my example https://gstuczynski.com/tour/plaszow/ - try to hit loupe -> on the desktop looks good but how to make it responsive? Here is my code https://github.com/gstuczynski/plaszow-cc-virtual-tour
If you're looking to set your surface size based on whether user is on mobile or desktop, I'd approach this by building a
NativeModuleto check if the device is mobile oncomponentDidMount()and using the built inresize()function to adjust your surface sizes.First add a module in
client.jsIn your case you already have vars for the surfaces - but remove const to expose them to your
NativeModule:Next, create your class
SurfaceModuleand include a function to check for mobile and include a ref for the surface namecheckMobile(surfaceName)Finally in index.js run the function to check and adjust surface sizes.
With this setup you'll need to call the function for each Surface you want to check or you could rework to send multiple refs and perform an if/switch
You could also move the call out of
componentDidMount()into another funcEDIT: Updated checkMobile() func & index.js to include callback