1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-29 20:43:09 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2024-04-23 00:15:13 +08:00
parent 5996a7aa75
commit e9e67b011c
6 changed files with 20 additions and 16 deletions

View File

@@ -1,8 +1,20 @@
import { Platform } from 'react-native';
export function log(...args: any[]) {
console.log('pushy: ', ...args);
}
const noop = () => {};
export class EmptyModule {
constructor() {
return new Proxy(this, {
get() {
return noop;
},
});
}
}
const ping =
Platform.OS === 'web'
? () => Promise.resolve(true)