我正在开发一个使用react-google-maps( https://github.com/tomchentw/react-google-maps ) 库的项目。
它运行良好,但我们偶然发现了标记重叠的问题。我们案例的理想解决方案是使用这个插件:https : //github.com/jawj/OverlappingMarkerSpiderfier。
有什么方法可以使用它react-google-maps吗?
javascript google-maps reactjs markerspiderfier react-google-maps
我正在开发一个react-native使用Expo和的简单应用程序native-base。我偶然发现了一个问题,我在任何文档中都找不到任何相关信息。
当我模糊任何文本输入、textarea 等时,页面总是快速滚动到顶部。它只发生在iOS上,在Android上没有这样的问题。
如果在我之前问过这个问题,我真的很感激一些线索,我做错了什么。
我正在使用以下软件包:
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react": "16.5.0",
"expo": "32.0.0",
"native-base": "^2.12.0"
Run Code Online (Sandbox Code Playgroud)
我的应用程序中的每个页面都包含以下组件:
import React from "react";
import { StyleSheet } from "react-native";
import { Container, Content } from "native-base";
const SceneWrapper = ({ Layout, bigTopPadding, ...props }) => {
return (
<Container style={styles.container} >
<Content style={styles.content} keyboardDismissMode="interactive">
<Layout {...props} />
</Content>
</Container>
);
};
const styles = StyleSheet.create({
container: {
backgroundColor: "white",
flex: 1,
alignItems: "flex-start",
justifyContent: "flex-start"
},
content: {
padding: …Run Code Online (Sandbox Code Playgroud)