From a6d64e679afcb493c1d2fd9db0c3e1ad42e1520f Mon Sep 17 00:00:00 2001 From: Ash Date: Tue, 1 Mar 2022 14:48:57 +0800 Subject: [PATCH] Update readme.md Update readme, remove setApiKey, Change to AMapSdk.init --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 90734fdc..08cae0b5 100644 --- a/readme.md +++ b/readme.md @@ -42,8 +42,9 @@ npm i react-native-amap3d ```js import { AMapSdk } from "react-native-amap3d"; +import { Platform } from 'react-native'; -AMapSdk.setApiKey( +AMapSdk.init( Platform.select({ android: "c52c7169e6df23490e3114330098aaac", ios: "186d3464209b74effa4d8391f441f14d",