mirror of
https://github.com/status-im/react-native.git
synced 2025-01-31 11:44:55 +00:00
d363b1f2e2
Reviewed By: javache Differential Revision: D3229435 fb-gh-sync-id: b0e252d69e1f399a946fca6e98ef62ff44c2ef9c fbshipit-source-id: b0e252d69e1f399a946fca6e98ef62ff44c2ef9c
61 lines
1.1 KiB
JavaScript
61 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*/
|
|
'use strict';
|
|
|
|
var NativeModules = {
|
|
I18n: {
|
|
translationsDictionary: JSON.stringify({
|
|
'Good bye, {name}!|Bye message': '¡Adiós {name}!',
|
|
}),
|
|
},
|
|
Timing: {
|
|
createTimer: jest.fn(),
|
|
deleteTimer: jest.fn(),
|
|
},
|
|
GraphPhotoUpload: {
|
|
upload: jest.fn(),
|
|
},
|
|
FacebookSDK: {
|
|
login: jest.fn(),
|
|
logout: jest.fn(),
|
|
queryGraphPath: jest.fn((path, method, params, callback) => callback()),
|
|
},
|
|
DataManager: {
|
|
queryData: jest.fn(),
|
|
},
|
|
UIManager: {
|
|
customBubblingEventTypes: {},
|
|
customDirectEventTypes: {},
|
|
Dimensions: {},
|
|
RCTModalFullscreenView: {
|
|
Constants: {},
|
|
},
|
|
RCTScrollView: {
|
|
Constants: {},
|
|
},
|
|
},
|
|
AsyncLocalStorage: {
|
|
getItem: jest.fn(),
|
|
setItem: jest.fn(),
|
|
removeItem: jest.fn(),
|
|
clear: jest.fn(),
|
|
},
|
|
SourceCode: {
|
|
scriptURL: null,
|
|
},
|
|
BuildInfo: {
|
|
appVersion: '0',
|
|
buildVersion: '0',
|
|
},
|
|
ModalFullscreenViewManager: {},
|
|
AlertManager: {
|
|
alertWithArgs: jest.fn(),
|
|
},
|
|
Clipboard: {
|
|
setString: jest.fn(),
|
|
},
|
|
};
|
|
|
|
module.exports = NativeModules;
|