Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
Update readme, remove setApiKey, Change to AMapSdk.init
  • Loading branch information
NoirVoider authored Mar 1, 2022
1 parent 302a802 commit a6d64e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a6d64e6

Please sign in to comment.