Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Read token directly from props allowing the token to be refreshed periodically mid session.
· 675bf665
Zandor Smith
authored
Feb 22, 2022
675bf665
Version bump. (v0.7.1)
· 3526a2d8
Zandor Smith
authored
Feb 22, 2022
3526a2d8
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
3526a2d8
{
"name"
:
"@zandor300/react-apple-mapkitjs"
,
"version"
:
"0.7.
0
"
,
"version"
:
"0.7.
1
"
,
"description"
:
"A react wrapper for apple mapkit.js"
,
"main"
:
"lib/index.js"
,
"scripts"
:
{
...
...
src/lib/AppleMaps.js
View file @
3526a2d8
...
...
@@ -2,12 +2,12 @@ import React, { Component } from 'react'
class
AppleMaps
extends
Component
{
componentDidMount
()
{
const
{
token
,
children
,
initialMapType
}
=
this
.
props
const
{
children
,
initialMapType
}
=
this
.
props
this
.
canvas
=
document
.
createElement
(
'
canvas
'
)
this
.
canvas
.
id
=
'
currentLocationOverride
'
mapkit
.
init
({
authorizationCallback
:
function
(
done
)
{
done
(
token
)
done
(
this
.
props
.
token
)
}
})
...
...