Do React Native not allow a-frame to drag up or down

Viewed 42

I would using the react native to create the mobile application. One of the page would need to using the webview with the a-frame scene In this page, I can display the webview with the panorama image. I can drag to left and right to control the view of the Aframe.

However, I cannot drag to up or down. Would any method to allow react native support drag up or down on the webview?

Here is my Code:

<View style={{flex: 1, zIndex:20}}>
                
                <WebView
                    javaScriptEnabled
                    style={{ height: 570, width: 500, alignSelf: 'center',left: -5}}

                    source={{
                    html: `
                        <!DOCTYPE html>
                        <html>
                        <style>
                            a-scene {height: ${winHeight}px; width: ${winWidth}px;}
                            #myEmbeddedScene {height: ${winHeight}px; width: ${winWidth}px;}
                        </style>
                        <script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
                        <div id="myEmbeddedScene">
                        
                        <a-scene vr-mode-ui="enabled: false">
                        <a-camera></a-camera>
                            <a-assets >
                                <img id="frodo" crossorigin="anonymous" src="${this.state.panoramaPath}">
                            </a-assets>
                            <!-- Using the asset management system. -->

                            <a-sky  src="#frodo" position="0 0 0" rotation="${x} ${y} ${z}"></a-sky>
                            </a-entity>

                        </a-scene>
                        </div>
                        </html>
                    `,
                    }}
                    automaticallyAdjustContentInsets={false}>
                </WebView>
            </View>
0 Answers
Related