UNPKG
@heap/react-native-heap
Version:
latest (0.22.8)
next (0.17.0-alpha1)
0.22.8
0.22.7
0.22.6
0.22.5
0.22.4
0.22.3
0.22.2
0.22.1
0.22.0
0.21.0
0.20.0
0.19.0
0.18.0
0.17.1
0.17.0
0.17.0-alpha1
0.16.0
0.15.0
0.15.0-alpha1
0.14.0
0.13.0
0.13.0-alpha2
0.13.0-alpha1
0.12.0
0.11.0
0.10.0
0.9.1
0.9.0
0.8.0
0.7.1
0.7.0
0.6.0
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.2.0-alpha5
0.2.0-alpha4
0.2.0-alpha3
0.2.0-alpha2
0.2.0-alpha1
0.1.2
0.1.1
0.1.0
0.1.0-beta.3
0.1.0-beta.2
0.1.0-beta.1
React Native event tracking with Heap.
github.com/heap/react-native-heap
heap/react-native-heap
@heap/react-native-heap
/
dist
/
js
/
util
/
contextualProps.js
7 lines
(6 loc)
•
268 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
NavigationUtil
from
'./navigationUtil'
;
import
{ getMetadataProps }
from
'./metadataPropUtil'
;
import
*
as
_
from
'lodash'
;
export
const
getContextualProps
= (
) => {
return
_.
merge
({},
getMetadataProps
(),
NavigationUtil
.
getScreenPropsForCurrentRoute
()); };