-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
598 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React, {Component} from 'react'; | ||
import {View, Text} from 'react-native'; | ||
import {Button, NavigationBar, SlideModal, Scrollpicker} from 'beeshell'; | ||
import {screenHeight} from '../../utils/index'; | ||
|
||
class Message extends Component { | ||
render() { | ||
return ( | ||
<View style={{flex: 1}}> | ||
<NavigationBar | ||
testID="nav1" | ||
title="标题" | ||
backLabelText="返回" | ||
forwardLabelText="下一步" | ||
onPressBack={() => { | ||
this.handlePress('返回'); | ||
}} | ||
onPressForward={() => { | ||
this.handlePress('下一步'); | ||
}}></NavigationBar> | ||
<Button | ||
size="sm" | ||
style={{marginTop: 12}} | ||
type="default" | ||
onPress={() => { | ||
this.slideModal.open(); | ||
}}> | ||
SlideModal 基础 | ||
</Button> | ||
<SlideModal | ||
ref={c => { | ||
this.slideModal = c; | ||
}} | ||
screenHeight={screenHeight} | ||
cancelable={true}> | ||
<View style={{backgroundColor: '#fff', padding: 20, borderRadius: 4}}> | ||
<View> | ||
<Text style={{backgroundColor: '#fff'}}>自定义内容</Text> | ||
<Text>内容比较简单,完全由用户自定义</Text> | ||
</View> | ||
</View> | ||
</SlideModal> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
export default Message; |
This file contains 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
Oops, something went wrong.