smartlook / smartlook-mobile-issue-tracker

Official Smartlook issue tracker for mobile SDKs
4 stars 0 forks source link

Smartlook.isRecording() return value #72

Closed gwijaya94 closed 3 years ago

gwijaya94 commented 3 years ago

Platform Android

Technology React Native

Build instructions [optional] "react-native": "0.63.4",

Smartlook SDK version "smartlook-react-native-wrapper": "^0.40.0",

Summary Expected return boolean from Smartlook.isRecording()

Steps to reproduce [optional] Applied Smartlook.isRecording() before and after Smartlook.startRecording()

Relevant logs and/or screenshots Code: Screen Shot 2021-03-26 at 11 46 45

Log: Screen Shot 2021-03-26 at 11 47 06

adamblack commented 3 years ago

Hi @gwijaya94 ,

isRecording is resolved via promise so you can use that variable via i.e.:

Smartlook.isRecording().then( isRecording => console.log(isRecording) )