mirror of
https://github.com/react/react-native.git
synced 2026-10-07 04:12:13 +08:00
Summary: When code depends on a module from fbjs, its types come from the node_modules directory. This is problematic when Flow is deployed, since we can't codemod the parts that come from node_modules. Reviewed By: dsainati1 Differential Revision: D15547035 fbshipit-source-id: 8794a32e0f5786bcdd80eab98344d4bc623fb674
25 lines
475 B
JavaScript
25 lines
475 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* Stub of Sample for Android.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const warning = require('fbjs/lib/warning');
|
|
|
|
const Sample = {
|
|
test: function() {
|
|
// $FlowFixMe warning expects a condition
|
|
warning('Not yet implemented for Android.');
|
|
},
|
|
};
|
|
|
|
module.exports = Sample;
|