This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This exposes the native DatePickerDialogAndroid module as a JS module. This has a function 'open' | |
* which takes the following parameters: | |
* | |
* 1. An options map. Available keys are: | |
* * `date` (timestamp in milliseconds) the date to show by default | |
* * `minDate` (timestamp in milliseconds) the minimum date the user should be allowed to select | |
* * `maxDate` (timestamp in milliseconds) the maximum date the user should be allowed to select | |
* 2. An error callback | |
* 3. A success callback; this will be invoked with parameters action, year, month (0-11), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2004-present Facebook. All Rights Reserved. | |
* | |
* @providesModule Modal | |
* @flow | |
*/ | |
'use strict'; | |
var Portal = require('Portal'); | |
var React = require('React'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2004-present Facebook. All Rights Reserved. | |
package com.facebook.catalyst.modules.appstate; | |
import com.facebook.react.bridge.Callback; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; | |
import com.facebook.react.bridge.ReactMethod; | |
import com.facebook.react.bridge.LifecycleEventListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2004-present Facebook. All Rights Reserved. | |
* | |
* @providesModule AppStateAndroid | |
*/ | |
'use strict'; | |
var Map = require('Map'); | |
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter'); | |
var AppState = require('NativeModules').AppStateAndroid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2004-present Facebook. All Rights Reserved. | |
package com.facebook.catalyst.modules.appstate; | |
import com.facebook.react.bridge.Callback; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; | |
import com.facebook.react.bridge.ReactMethod; | |
import com.facebook.react.bridge.LifecycleEventListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.facebook.react.views.modalhost; | |
import com.facebook.react.uimanager.events.Event; | |
import com.facebook.react.uimanager.events.RCTEventEmitter; | |
/** | |
* {@link Event} for dismissing a Dialog. | |
*/ | |
public class DismissEvent extends Event<DismissEvent> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2004-present Facebook. All Rights Reserved. | |
package com.facebook.react.views.modalhost; | |
import java.util.Map; | |
import android.content.DialogInterface; | |
import android.os.SystemClock; | |
import com.facebook.react.common.MapBuilder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.facebook.react.views.modalhost; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.WindowManager; | |
import com.facebook.react.R; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
RELEASE="$1" | |
JAVA_VERSION="1.7" | |
RED="\033[0;31m" | |
GREEN="\033[0;32m" | |
BLUE="\033[0;35m" | |
ENDCOLOR="\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
RELEASE="$1" | |
JAVA_VERSION="1.7" | |
RED="\033[0;31m" | |
GREEN="\033[0;32m" | |
BLUE="\033[0;35m" | |
ENDCOLOR="\033[0m" |