chore(deps) react-native-watch-connectivity @ 1.0.4

This commit is contained in:
Saúl Ibarra Corretgé 2022-01-05 16:26:21 +01:00 committed by Saúl Ibarra Corretgé
parent 188aff5aff
commit b6501412c4
4 changed files with 30 additions and 20 deletions

View File

@ -387,7 +387,7 @@ PODS:
- React-Core
- RNSVG (12.1.0):
- React
- RNWatch (0.4.3):
- RNWatch (1.0.4):
- React
- Yoga (1.14.0)
@ -644,7 +644,7 @@ SPEC CHECKSUMS:
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
RNSound: 27e8268bdb0a1f191f219a33267f7e0445e8d62f
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
RNWatch: a5320c959c75e72845c07985f3e935e58998f1d3
RNWatch: 99637948ec9b5c9ec5a41920642594ad5ba07e80
Yoga: 96b469c5e81ff51b917b92e8c3390642d4ded30c
PODFILE CHECKSUM: 2e6a49cec4d0e9eb135654df2dddb3448d26cb4a

30
package-lock.json generated
View File

@ -103,7 +103,7 @@
"react-native-tab-view": "2.16.0",
"react-native-url-polyfill": "1.3.0",
"react-native-video": "5.2.0",
"react-native-watch-connectivity": "0.4.3",
"react-native-watch-connectivity": "1.0.4",
"react-native-webrtc": "1.94.1",
"react-native-webview": "11.0.2",
"react-native-youtube-iframe": "2.1.1",
@ -12692,6 +12692,11 @@
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true
},
"node_modules/lodash.sortby": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
"integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg="
},
"node_modules/lodash.throttle": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
@ -16484,9 +16489,12 @@
}
},
"node_modules/react-native-watch-connectivity": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-0.4.3.tgz",
"integrity": "sha512-iqdJ1KpZbR4XGahgVmaeibB7kDhyMT7wrylINgJaYBY38IAiI0LF32VX1umO4pko6n21YF5I/kSeNQ+OXGqqow==",
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-1.0.4.tgz",
"integrity": "sha512-Z7p7fzF6gaWHHM5kVYvM2l5bslc+59obqvfXA+DwqjOaO640APDjU7Sl8R2oglJhzLJArbmO25lH1YY1pSd8AQ==",
"dependencies": {
"lodash.sortby": "^4.7.0"
},
"peerDependencies": {
"react": ">=15.1",
"react-native": ">=0.40"
@ -30487,6 +30495,11 @@
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true
},
"lodash.sortby": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
"integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg="
},
"lodash.throttle": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
@ -33440,9 +33453,12 @@
}
},
"react-native-watch-connectivity": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-0.4.3.tgz",
"integrity": "sha512-iqdJ1KpZbR4XGahgVmaeibB7kDhyMT7wrylINgJaYBY38IAiI0LF32VX1umO4pko6n21YF5I/kSeNQ+OXGqqow=="
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/react-native-watch-connectivity/-/react-native-watch-connectivity-1.0.4.tgz",
"integrity": "sha512-Z7p7fzF6gaWHHM5kVYvM2l5bslc+59obqvfXA+DwqjOaO640APDjU7Sl8R2oglJhzLJArbmO25lH1YY1pSd8AQ==",
"requires": {
"lodash.sortby": "^4.7.0"
}
},
"react-native-webrtc": {
"version": "1.94.1",

View File

@ -108,7 +108,7 @@
"react-native-tab-view": "2.16.0",
"react-native-url-polyfill": "1.3.0",
"react-native-video": "5.2.0",
"react-native-watch-connectivity": "0.4.3",
"react-native-watch-connectivity": "1.0.4",
"react-native-webrtc": "1.94.1",
"react-native-webview": "11.0.2",
"react-native-youtube-iframe": "2.1.1",

View File

@ -1,7 +1,7 @@
// @flow
import { Platform } from 'react-native';
import * as watch from 'react-native-watch-connectivity';
import { updateApplicationContext, watchEvents } from 'react-native-watch-connectivity';
import { appNavigate } from '../../app/actions';
import { APP_WILL_MOUNT } from '../../base/app';
@ -70,18 +70,12 @@ watchOSEnabled && MiddlewareRegistry.register(store => next => action => {
* @returns {void}
*/
function _appWillMount({ dispatch, getState }) {
watch.subscribeToWatchReachability((error, reachable) => {
watchEvents.addListener('reachability', reachable => {
dispatch(setWatchReachable(reachable));
_updateApplicationContext(getState);
});
watch.subscribeToMessages((error, message) => {
if (error) {
logger.error('watch.subscribeToMessages error:', error);
return;
}
watchEvents.addListener('message', message => {
const {
command,
sessionID
@ -185,7 +179,7 @@ function _updateApplicationContext(stateful) {
}
try {
watch.updateApplicationContext({
updateApplicationContext({
conferenceTimestamp,
conferenceURL: getCurrentConferenceUrl(state),
micMuted: _isAudioMuted(state),