Skip to content

Commit

Permalink
Backed out changeset eadb184eacdf
Browse files Browse the repository at this point in the history
Reviewed By: fkgozali, hramos

Differential Revision: D6287083

fbshipit-source-id: 43c6e43a9d5411e71f51824f9443559b4e0a47e2
  • Loading branch information
Jessica Cao authored and facebook-github-bot committed Nov 9, 2017
1 parent a47431e commit 7809381
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
9 changes: 4 additions & 5 deletions Libraries/Alert/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const NativeModules = require('NativeModules');
const Platform = require('Platform');

import type { AlertType, AlertButtonStyle } from 'AlertIOS';
import type { Fbt } from 'fbt';

export type Buttons = Array<{
text?: string,
Expand Down Expand Up @@ -80,8 +79,8 @@ type Options = {
class Alert {

static alert(
title: ?string | ?Fbt,
message?: ?string | ?Fbt,
title: ?string,
message?: ?string,
buttons?: Buttons,
options?: Options,
type?: AlertType,
Expand All @@ -105,8 +104,8 @@ class Alert {
class AlertAndroid {

static alert(
title: ?string | ?Fbt,
message?: ?string | ?Fbt,
title: ?string,
message?: ?string,
buttons?: Buttons,
options?: Options,
): void {
Expand Down
12 changes: 5 additions & 7 deletions Libraries/Alert/AlertIOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
*/
'use strict';

const RCTAlertManager = require('NativeModules').AlertManager;

import type { Fbt } from 'fbt';
var RCTAlertManager = require('NativeModules').AlertManager;

/**
* An Alert button type
Expand Down Expand Up @@ -135,8 +133,8 @@ class AlertIOS {
* );
*/
static alert(
title: ?string | ?Fbt,
message?: ?string | ?Fbt,
title: ?string,
message?: ?string,
callbackOrButtons?: ?(() => void) | ButtonsArray,
type?: AlertType,
): void {
Expand Down Expand Up @@ -194,8 +192,8 @@ class AlertIOS {
* );
*/
static prompt(
title: ?string | ?Fbt,
message?: ?string | ?Fbt,
title: ?string,
message?: ?string,
callbackOrButtons?: ?((text: string) => void) | ButtonsArray,
type?: ?AlertType = 'plain-text',
defaultValue?: string,
Expand Down

0 comments on commit 7809381

Please sign in to comment.