mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
53f791ed91
- [MAdMan][Android] Make things look more Androidy | Philipp von Weitershausen - flowified Libraries from Avik | Basil Hosmer - flowify some Libraries | Basil Hosmer - [ReactKit] Add shake development menu | Alex Kotliarskyi - [ReactNative] Add debugger and change SampleApp files structure | Alex Kotliarskyi - Flowify ReactIOSEventEmitter | Marshall Roch - [react_native] JS files from D1941151: Allow fontWeight to be 100,200,...,900 | Krzysztof Magiera
25 lines
705 B
JavaScript
25 lines
705 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule ensureComponentIsNative
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
var invariant = require('invariant');
|
|
|
|
var ensureComponentIsNative = function(component: any) {
|
|
invariant(
|
|
component && typeof component.setNativeProps === 'function',
|
|
'Touchable child must either be native or forward setNativeProps to a ' +
|
|
'native component'
|
|
);
|
|
};
|
|
|
|
module.exports = ensureComponentIsNative;
|