PanGestureHandler我在使用from react-native-gesture-handlerwith时遇到问题Modal。这在 中完美运行iOS,但在android. 此外,当我更改Modal为组件时,它也View可以正常工作。Android请任何人都可以建议我解决这个问题。
class Circle extends Component {
_touchX = new Animated.Value(windowWidth / 2 - circleRadius);
_onPanGestureEvent = Animated.event([{ nativeEvent: { x: this._touchX } }], { useNativeDriver: true });
render() {
return (
<Modal
isVisible={true}
>
<PanGestureHandler
onGestureEvent={this._onPanGestureEvent}>
<Animated.View style={{
height: 150,
justifyContent: 'center',
}}>
<Animated.View
style={[{
backgroundColor: '#42a5f5', borderRadius: circleRadius, height: circleRadius * 2, width: circleRadius * 2,
}, {
transform: [{ translateX: Animated.add(this._touchX, …Run Code Online (Sandbox Code Playgroud) javascript android reactjs react-native react-native-gesture-handler
我正在开发一个react-native应用程序,在其中我正在使用该WebView组件在应用程序内部呈现网页。但是我无法从android移动应用程序的网站下载文件。
<View style={styles.container}>
<WebView
source={{ uri: 'https://********** }}
ref={'WEBVIEW_REF'}
startInLoadingState={true}
scalesPageToFit={true}
onNavigationStateChange={this.onNavigationStateChange.bind(this)}
javaScriptEnabled={true}
/>
</View>
Run Code Online (Sandbox Code Playgroud)
我发现GitHub react-native知识库中报告了一些问题,但这些问题仍然是未解决的。但是对此有什么解决方案吗?
android ×2
javascript ×2
react-native ×2
reactjs ×2
react-native-gesture-handler ×1
webview ×1