Skip to content

Commit 6ea5808

Browse files
Merge pull request #6 from miallo/forward-android-hardware-acceleration-disabled
fix: forward-androidHardwareAccelerationDisabled to WebView
2 parents 61f7078 + d273096 commit 6ea5808

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LeafletView/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export type LeafletViewProps = {
4848
ownPositionMarker?: OwnPositionMarker;
4949
zoom?: number;
5050
doDebug?: boolean;
51+
androidHardwareAccelerationDisabled?: boolean;
5152
};
5253

5354
const LeafletView: React.FC<LeafletViewProps> = ({
@@ -63,6 +64,7 @@ const LeafletView: React.FC<LeafletViewProps> = ({
6364
ownPositionMarker,
6465
zoom,
6566
doDebug,
67+
androidHardwareAccelerationDisabled,
6668
}) => {
6769
const webViewRef = useRef<WebView>(null);
6870
const [initialized, setInitialized] = useState(false);
@@ -213,6 +215,7 @@ const LeafletView: React.FC<LeafletViewProps> = ({
213215
allowFileAccess={true}
214216
allowUniversalAccessFromFileURLs={true}
215217
allowFileAccessFromFileURLs={true}
218+
androidHardwareAccelerationDisabled={androidHardwareAccelerationDisabled}
216219
/>
217220
);
218221
};

0 commit comments

Comments
 (0)