Open StarHosea opened 1 year ago
这行代码,在 react 18 下,ts 报错 https://github.com/qiuxiang/react-native-amap3d/blob/main/lib/src/cluster/index.tsx#L66。
renderCluster?: (params: ClusterParams) => React.ComponentType<any>;
修改为ts构建通过
renderCluster?: (params: ClusterParams) => React.ReactNode;
这行代码,在 react 18 下,ts 报错 https://github.com/qiuxiang/react-native-amap3d/blob/main/lib/src/cluster/index.tsx#L66。
修改为ts构建通过