react-native-simple-yamap
Version:
Yandex simple maps for react native
23 lines (19 loc) • 521 B
text/typescript
import { codegenNativeComponent, type ViewProps } from 'react-native';
import type {
Double,
Float,
Int32,
} from 'react-native/Libraries/Types/CodegenTypesNamespace';
type Point = Readonly<{
lon: Double;
lat: Double;
}>;
export interface NativeProps extends ViewProps {
id: string;
points: Readonly<Point[]>;
innerPoints?: Readonly<Readonly<Point[]>[]>;
fillColor?: Int32;
strokeColor?: Int32;
strokeWidth?: Float;
}
export default codegenNativeComponent<NativeProps>('SimpleYamapPolygonView');