From f0c1e39599e961111764059678a1993558bb4535 Mon Sep 17 00:00:00 2001 From: Garfield Lee Date: Wed, 29 Jan 2020 18:22:21 +0800 Subject: [PATCH] fix: add offAccelerometerChange api close #5394 --- packages/taro/src/native-apis.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/taro/src/native-apis.js b/packages/taro/src/native-apis.js index e09026b600ed..a58fff140180 100644 --- a/packages/taro/src/native-apis.js +++ b/packages/taro/src/native-apis.js @@ -8,6 +8,7 @@ const onAndSyncApis = { onBackgroundAudioStop: true, onNetworkStatusChange: true, onAccelerometerChange: true, + offAccelerometerChange: true, onCompassChange: true, onBluetoothAdapterStateChange: true, onBluetoothDeviceFound: true,