/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; var React; var ReactNativeCS; jest.mock('shared/ReactFeatureFlags', () => require('shared/forks/ReactFeatureFlags.native-cs'), ); describe('ReactNativeCS', () => { beforeEach(() => { jest.resetModules(); React = require('react'); ReactNativeCS = require('react-cs-renderer'); }); it('should be able to create and render a native component', () => { const CSView = 'View'; var props = ; var state = ReactNativeCS.getInitialState({}); var stateUpdater = function() {}; ReactNativeCS.render({props, state, stateUpdater}); }); });