Home
last modified time | relevance | path

Searched refs:NativeModulesProxy (Results 1 – 25 of 102) sorted by relevance

12345

/expo/packages/expo-modules-core/src/__tests__/
H A DNativeModulesProxy-test.native.ts1 import NativeModulesProxy from '../NativeModulesProxy';
17 expect(NativeModulesProxy).toHaveProperty('ExpoTest');
18 expect(NativeModulesProxy.ExpoTest.testConstant).toBe('test');
19 expect(typeof NativeModulesProxy.ExpoTest.testAsync).toBe('function');
23 await expect(NativeModulesProxy.ExpoTest.testAsync('a')).resolves.not.toThrow();
24 await expect(NativeModulesProxy.ExpoTest.testAsync()).rejects.toThrowErrorMatchingSnapshot();
26 NativeModulesProxy.ExpoTest.testAsync('a', 'b')
31 expect(typeof NativeModulesProxy.ExpoTest.addListener).toBe('function');
32 expect(typeof NativeModulesProxy.ExpoTest.removeListeners).toBe('function');
/expo/packages/expo-modules-core/build/
H A DNativeModulesProxy.native.js5 const ExpoNativeProxy = global.expo?.modules?.NativeModulesProxy;
8 const NativeModulesProxy = {}; constant
14 NativeModulesProxy[moduleName] = NativeProxy[modulesConstantsKey][moduleName] || {};
17 NativeModulesProxy[moduleName][methodInfo.name] = (...args) => {
42NativeModulesProxy[moduleName].addListener = (...args) => NativeModules.EXReactNativeEventEmitter.…
43NativeModulesProxy[moduleName].removeListeners = (...args) => NativeModules.EXReactNativeEventEmit…
49 NativeModulesProxy[moduleName].addListener = () => { };
50 NativeModulesProxy[moduleName].removeListeners = () => { };
57 export default NativeModulesProxy;
H A DNativeModulesProxy.js.map1NativeModulesProxy.js","sourceRoot":"","sources":["../src/NativeModulesProxy.ts"],"names":[],"mapp…
H A DNativeModulesProxy.native.d.ts2 declare const NativeModulesProxy: { constant
5 export default NativeModulesProxy;
/expo/packages/expo-modules-core/src/
H A DNativeModulesProxy.native.ts8 const ExpoNativeProxy = global.expo?.modules?.NativeModulesProxy;
13 const NativeModulesProxy: { [moduleName: string]: ProxyNativeModule } = {}; constant
21 NativeModulesProxy[moduleName] = NativeProxy[modulesConstantsKey][moduleName] || {};
25 NativeModulesProxy[moduleName][methodInfo.name] = (...args: unknown[]): Promise<any> => {
58 NativeModulesProxy[moduleName].addListener = (...args) =>
60 NativeModulesProxy[moduleName].removeListeners = (...args) =>
66 NativeModulesProxy[moduleName].addListener = () => {};
67 NativeModulesProxy[moduleName].removeListeners = () => {};
76 export default NativeModulesProxy;
/expo/packages/expo-secure-store/src/__tests__/
H A DSecureStore-test.native.ts1 import { NativeModulesProxy } from 'expo-modules-core';
11 expect(NativeModulesProxy.ExpoSecureStore.setValueWithKeyAsync).toHaveBeenCalledTimes(1);
12 expect(NativeModulesProxy.ExpoSecureStore.setValueWithKeyAsync).toHaveBeenCalledWith(
21 expect(NativeModulesProxy.ExpoSecureStore.setValueWithKeyAsync).toHaveBeenCalledWith(
29 NativeModulesProxy.ExpoSecureStore.getValueWithKeyAsync.mockImplementation(async () => 'value');
34 expect(NativeModulesProxy.ExpoSecureStore.getValueWithKeyAsync).toHaveBeenCalledWith(
43 expect(NativeModulesProxy.ExpoSecureStore.deleteValueWithKeyAsync).toHaveBeenCalledWith(
50 NativeModulesProxy.ExpoSecureStore.getValueWithKeyAsync.mockImplementation(
60 expect(NativeModulesProxy.ExpoSecureStore.getValueWithKeyAsync).not.toHaveBeenCalled();
69 expect(NativeModulesProxy.ExpoSecureStore.setValueWithKeyAsync).not.toHaveBeenCalled();
/expo/packages/expo-maps/src/
H A DExpoMaps.ts1 import { NativeModulesProxy } from 'expo-modules-core';
3 export const NativeExpoAppleMapsModule = NativeModulesProxy.ExpoAppleMaps;
4 export const NativeExpoGoogleMapsModule = NativeModulesProxy.ExpoGoogleMaps;
H A DNativeExpoMapView.tsx1 import { requireNativeViewManager, NativeModulesProxy } from 'expo-modules-core';
14 export const NativeExpoAppleMapsModule = NativeModulesProxy.ExpoAppleMaps;
15 export const NativeExpoGoogleMapsModule = NativeModulesProxy.ExpoGoogleMaps;
/expo/packages/expo-maps/build/
H A DExpoMaps.js1 import { NativeModulesProxy } from 'expo-modules-core';
2 export const NativeExpoAppleMapsModule = NativeModulesProxy.ExpoAppleMaps;
3 export const NativeExpoGoogleMapsModule = NativeModulesProxy.ExpoGoogleMaps;
H A DNativeExpoMapView.js1 import { requireNativeViewManager, NativeModulesProxy } from 'expo-modules-core';
4 export const NativeExpoAppleMapsModule = NativeModulesProxy.ExpoAppleMaps;
5 export const NativeExpoGoogleMapsModule = NativeModulesProxy.ExpoGoogleMaps;
/expo/packages/expo-location/src/__tests__/
H A DLocation-test.native.ts1 import { NativeModulesProxy, Platform } from 'expo-modules-core';
20 NativeModulesProxy.ExpoLocation,
25 NativeModulesProxy.ExpoLocation,
56 NativeModulesProxy.ExpoLocation,
73 mockProperty(NativeModulesProxy.ExpoLocation, 'geocodeAsync', async () => {
111 expect(NativeModulesProxy.ExpoLocation.getCurrentPositionAsync).toHaveBeenCalled();
122 NativeModulesProxy.ExpoLocation,
/expo/packages/expo-constants/build/
H A DConstants.js1 import { CodedError, NativeModulesProxy } from 'expo-modules-core';
11 if (NativeModulesProxy.ExpoUpdates) {
13 if (NativeModulesProxy.ExpoUpdates.manifest) {
14 updatesManifest = NativeModulesProxy.ExpoUpdates.manifest;
16 else if (NativeModulesProxy.ExpoUpdates.manifestString) {
17 updatesManifest = JSON.parse(NativeModulesProxy.ExpoUpdates.manifestString);
119 if (NativeModulesProxy.ExpoUpdates && NativeModulesProxy.ExpoUpdates.isEmbeddedLaunch) {
/expo/packages/expo-modules-core/build/sweet/
H A DNativeErrorManager.js.map1 …2B,CAAC","sourcesContent":["import NativeModulesProxy from '../NativeModulesProxy';\nexport defaul…
H A DNativeErrorManager.js1 import NativeModulesProxy from '../NativeModulesProxy';
2 export default NativeModulesProxy.ExpoModulesCoreErrorManager;
/expo/packages/expo-constants/src/
H A DConstants.ts11 import { CodedError, NativeModulesProxy } from 'expo-modules-core';
49 if (NativeModulesProxy.ExpoUpdates) {
51 if (NativeModulesProxy.ExpoUpdates.manifest) {
52 updatesManifest = NativeModulesProxy.ExpoUpdates.manifest;
53 } else if (NativeModulesProxy.ExpoUpdates.manifestString) {
54 updatesManifest = JSON.parse(NativeModulesProxy.ExpoUpdates.manifestString);
174 if (NativeModulesProxy.ExpoUpdates && NativeModulesProxy.ExpoUpdates.isEmbeddedLaunch) {
/expo/packages/expo-tracking-transparency/src/
H A DExpoTrackingTransparency.ts1 import { NativeModulesProxy } from 'expo-modules-core';
3 export default NativeModulesProxy.ExpoTrackingTransparency;
/expo/packages/expo-modules-core/src/sweet/
H A DNativeErrorManager.ts1 import NativeModulesProxy from '../NativeModulesProxy';
2 export default NativeModulesProxy.ExpoModulesCoreErrorManager;
/expo/packages/expo-face-detector/src/
H A DExpoFaceDetector.ts1 import { NativeModulesProxy } from 'expo-modules-core';
3 export default NativeModulesProxy.ExpoFaceDetector;
/expo/packages/expo-contacts/src/
H A DExpoContacts.ts1 import { NativeModulesProxy } from 'expo-modules-core';
3 export default NativeModulesProxy.ExpoContacts;
/expo/packages/expo-updates/src/
H A DExpoUpdates.ts1 import { NativeModulesProxy } from 'expo-modules-core';
2 export default NativeModulesProxy.ExpoUpdates ?? ({} as any);
/expo/packages/expo-face-detector/build/
H A DExpoFaceDetector.js1 import { NativeModulesProxy } from 'expo-modules-core';
2 export default NativeModulesProxy.ExpoFaceDetector;
/expo/packages/expo-tracking-transparency/build/
H A DExpoTrackingTransparency.js1 import { NativeModulesProxy } from 'expo-modules-core';
2 export default NativeModulesProxy.ExpoTrackingTransparency;
/expo/packages/expo-updates/build/
H A DExpoUpdates.js1 import { NativeModulesProxy } from 'expo-modules-core';
2 export default NativeModulesProxy.ExpoUpdates ?? {};
/expo/packages/expo-contacts/build/
H A DExpoContacts.js1 import { NativeModulesProxy } from 'expo-modules-core';
2 export default NativeModulesProxy.ExpoContacts;
/expo/packages/expo-modules-core/android/src/main/java/expo/modules/adapters/react/
H A DModuleRegistryAdapter.java34 private NativeModulesProxy mModulesProxy;
36 private void setModulesProxy(@Nullable NativeModulesProxy newProxy) { in setModulesProxy()
62 NativeModulesProxy proxy = getOrCreateNativeModulesProxy(reactContext, null); in createNativeModules()
84NativeModulesProxy nativeModulesProxy = getOrCreateNativeModulesProxy(reactContext, moduleRegistry… in getNativeModulesFromModuleRegistry()
106NativeModulesProxy modulesProxy = Objects.requireNonNull(getOrCreateNativeModulesProxy(reactContex… in createViewManagers()
120 private synchronized NativeModulesProxy getOrCreateNativeModulesProxy( in getOrCreateNativeModulesProxy()
130 setModulesProxy(new NativeModulesProxy(reactContext, registry, mModulesProvider)); in getOrCreateNativeModulesProxy()
132 setModulesProxy(new NativeModulesProxy(reactContext, registry)); in getOrCreateNativeModulesProxy()

12345