2015-04-23 09:41:45 -07:00
|
|
|
/**
|
|
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var NativeModules = {
|
|
|
|
I18n: {
|
2015-04-27 15:58:21 -07:00
|
|
|
translationsDictionary: JSON.stringify({
|
2015-04-23 09:41:45 -07:00
|
|
|
'Good bye, {name}!|Bye message': '¡Adiós {name}!',
|
2015-04-27 15:58:21 -07:00
|
|
|
}),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
Timing: {
|
|
|
|
createTimer: jest.genMockFunction(),
|
|
|
|
deleteTimer: jest.genMockFunction(),
|
|
|
|
},
|
|
|
|
GraphPhotoUpload: {
|
|
|
|
upload: jest.genMockFunction(),
|
|
|
|
},
|
|
|
|
FacebookSDK: {
|
|
|
|
login: jest.genMockFunction(),
|
|
|
|
logout: jest.genMockFunction(),
|
|
|
|
queryGraphPath: jest.genMockFunction().mockImpl(
|
|
|
|
(path, method, params, callback) => callback()
|
|
|
|
),
|
|
|
|
},
|
|
|
|
DataManager: {
|
|
|
|
queryData: jest.genMockFunction(),
|
|
|
|
},
|
|
|
|
UIManager: {
|
|
|
|
customBubblingEventTypes: {},
|
|
|
|
customDirectEventTypes: {},
|
2015-04-24 14:43:14 -07:00
|
|
|
Dimensions: {},
|
2015-08-31 17:34:51 -07:00
|
|
|
RCTModalFullscreenView: {
|
|
|
|
Constants: {},
|
|
|
|
},
|
|
|
|
RCTScrollView: {
|
|
|
|
Constants: {},
|
|
|
|
},
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
AsyncLocalStorage: {
|
|
|
|
getItem: jest.genMockFunction(),
|
|
|
|
setItem: jest.genMockFunction(),
|
|
|
|
removeItem: jest.genMockFunction(),
|
|
|
|
clear: jest.genMockFunction(),
|
|
|
|
},
|
|
|
|
SourceCode: {
|
|
|
|
scriptURL: null,
|
|
|
|
},
|
2015-07-28 17:59:33 -07:00
|
|
|
BuildInfo: {
|
|
|
|
appVersion: '0',
|
|
|
|
buildVersion: '0',
|
|
|
|
},
|
2015-08-31 17:34:51 -07:00
|
|
|
ModalFullscreenViewManager: {},
|
|
|
|
AlertManager: {
|
|
|
|
alertWithArgs: jest.genMockFunction(),
|
|
|
|
},
|
2015-12-09 10:00:19 -08:00
|
|
|
Clipboard: {
|
|
|
|
setString: jest.genMockFunction(),
|
2015-08-31 17:34:51 -07:00
|
|
|
},
|
2015-04-23 09:41:45 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = NativeModules;
|