Skip to content

Commit

Permalink
feat(picker): change the way to export and fix modal close bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lulutia committed Aug 26, 2016
1 parent 1800345 commit 6f61b16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/csetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')}}
>
<View style={[styles.modalContainer]}>
<Animated.View style={[styles.innerContainer,{top:this.state.animatedHeight}]}>
Expand Down
2 changes: 1 addition & 1 deletion app/picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};

6 changes: 3 additions & 3 deletions index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Text,
StyleSheet
} from 'react-native';
import {Cpicker,Tpicker} from './app/picker';
import Test3, {Cpicker}from './app/picker';


let wheel2 = [
Expand Down Expand Up @@ -198,7 +198,7 @@ class TpickerEx extends Component {
data = {level2Data}
visible = {false}
/>
<Tpicker
<Test3
inputValue ={'3 wheel picker'}
inputStyle = {testStyle.textInput}
confirmBtnText = {'confirm'}
Expand All @@ -207,7 +207,7 @@ class TpickerEx extends Component {
selectIndex = {[0,2,1]}
visible = {false}
/>
<Tpicker
<Test3
inputValue ={'2 wheel picker'}
inputStyle = {testStyle.textInput}
confirmBtnText = {'confirm'}
Expand Down

0 comments on commit 6f61b16

Please sign in to comment.