mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
a0f49fcbd5
Summary: Starting in RN 0.43, lets start recommending people to move off of NavExperimental, now that a better navigation option is available, and hybrid options on the horizon. Reviewed By: hramos Differential Revision: D4634268 fbshipit-source-id: 2f37cc62f9729ae123d85f609a88f84516a5ae92
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
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 NavigationExperimental
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
const NavigationCard = require('NavigationCard');
|
|
const NavigationCardStack = require('NavigationCardStack');
|
|
const NavigationHeader = require('NavigationHeader');
|
|
const NavigationPropTypes = require('NavigationPropTypes');
|
|
const NavigationStateUtils = require('NavigationStateUtils');
|
|
const NavigationTransitioner = require('NavigationTransitioner');
|
|
|
|
const warning = require('fbjs/lib/warning');
|
|
|
|
// This warning will only be reached if the user has required the module
|
|
warning(
|
|
false,
|
|
'NavigationExperimental is deprecated and will be removed in a future ' +
|
|
'version of React Native. The NavigationExperimental views live on in ' +
|
|
'the React-Navigation project, which also makes it easy to declare ' +
|
|
'navigation logic for your app. Learn more at https://reactnavigation.org/'
|
|
);
|
|
|
|
|
|
const NavigationExperimental = {
|
|
// Core
|
|
StateUtils: NavigationStateUtils,
|
|
|
|
// Views
|
|
Transitioner: NavigationTransitioner,
|
|
|
|
// CustomComponents:
|
|
Card: NavigationCard,
|
|
CardStack: NavigationCardStack,
|
|
Header: NavigationHeader,
|
|
|
|
PropTypes: NavigationPropTypes,
|
|
};
|
|
|
|
module.exports = NavigationExperimental;
|