From 6f61b16e0d8e83e76202e1c966b218c221af6473 Mon Sep 17 00:00:00 2001 From: lulutia Date: Fri, 26 Aug 2016 10:21:45 +0800 Subject: [PATCH] feat(picker): change the way to export and fix modal close bug --- app/csetup.js | 2 +- app/picker.js | 2 +- index.android.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/csetup.js b/app/csetup.js index 65a2838..8a77eeb 100644 --- a/app/csetup.js +++ b/app/csetup.js @@ -289,7 +289,7 @@ class CPickerroll extends Component { animationType={this.state.animationType} transparent={true} visible={this.state.visible} - onRequestClose={() => {this._setModalVisible(false)}} + onRequestClose={() => {this._setModalVisible(false, 'cancel')}} > diff --git a/app/picker.js b/app/picker.js index 40d7e4c..9fb8329 100644 --- a/app/picker.js +++ b/app/picker.js @@ -2,5 +2,5 @@ import React, { Component } from 'react'; import CPickerroll from './csetup'; import TMPicker from './setup3'; -export {CPickerroll as Cpicker,TMPicker as Tpicker}; +export {CPickerroll as Cpicker,TMPicker as default}; diff --git a/index.android.js b/index.android.js index d27af7b..abe8574 100644 --- a/index.android.js +++ b/index.android.js @@ -10,7 +10,7 @@ import { Text, StyleSheet } from 'react-native'; -import {Cpicker,Tpicker} from './app/picker'; +import Test3, {Cpicker}from './app/picker'; let wheel2 = [ @@ -198,7 +198,7 @@ class TpickerEx extends Component { data = {level2Data} visible = {false} /> - -