mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-01 18:15:13 +00:00
[add] Alert API
This commit is contained in:
@@ -3,6 +3,7 @@ module.exports = {
|
|||||||
ART: true,
|
ART: true,
|
||||||
AccessibilityInfo: true,
|
AccessibilityInfo: true,
|
||||||
ActivityIndicator: true,
|
ActivityIndicator: true,
|
||||||
|
Alert: true,
|
||||||
Animated: true,
|
Animated: true,
|
||||||
AppRegistry: true,
|
AppRegistry: true,
|
||||||
AppState: true,
|
AppState: true,
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2016-present, Nicolas Gallagher.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*
|
||||||
|
* @flow
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Alert {
|
||||||
|
static alert() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Alert;
|
||||||
+3
@@ -9,6 +9,7 @@ import ViewPropTypes from './exports/ViewPropTypes';
|
|||||||
|
|
||||||
// APIs
|
// APIs
|
||||||
import AccessibilityInfo from './exports/AccessibilityInfo';
|
import AccessibilityInfo from './exports/AccessibilityInfo';
|
||||||
|
import Alert from './exports/Alert';
|
||||||
import Animated from './exports/Animated';
|
import Animated from './exports/Animated';
|
||||||
import AppRegistry from './exports/AppRegistry';
|
import AppRegistry from './exports/AppRegistry';
|
||||||
import AppState from './exports/AppState';
|
import AppState from './exports/AppState';
|
||||||
@@ -80,6 +81,7 @@ export {
|
|||||||
ViewPropTypes,
|
ViewPropTypes,
|
||||||
// APIs
|
// APIs
|
||||||
AccessibilityInfo,
|
AccessibilityInfo,
|
||||||
|
Alert,
|
||||||
Animated,
|
Animated,
|
||||||
AppRegistry,
|
AppRegistry,
|
||||||
AppState,
|
AppState,
|
||||||
@@ -150,6 +152,7 @@ const ReactNative = {
|
|||||||
ViewPropTypes,
|
ViewPropTypes,
|
||||||
// APIs
|
// APIs
|
||||||
AccessibilityInfo,
|
AccessibilityInfo,
|
||||||
|
Alert,
|
||||||
Animated,
|
Animated,
|
||||||
AppRegistry,
|
AppRegistry,
|
||||||
AppState,
|
AppState,
|
||||||
|
|||||||
Reference in New Issue
Block a user