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
| public class ApplicationTypeModel | |
| { | |
| public int Id { set; get; } | |
| public string ApplicationName { set; get; } | |
| } |
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
| <select id="ApplicationType" name="ApplicationType"> | |
| <option value=""> - Select Type - </option> | |
| <option value="0">Forum</option> | |
| <option value="1">Weblog</option> | |
| <option value="2">Gallery</option> | |
| <option value="3">GuestBook</option> | |
| </select> |
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
| outsideClick={() => { | |
| if(closeOnClickOutside) { | |
| this.setState({ modalVisible: false }); | |
| } | |
| }} |
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
| <CustomModal | |
| animation="slide" | |
| visible={this.state.modalVisible} | |
| mode="overFullScreen" | |
| boxBackgroundColor="lightyellow" | |
| transparentContainer={transparent} | |
| bottomHalf={bottomHalf} | |
| outsideClick={() => { | |
| if(closeOnClickOutside) { | |
| this.setState({ modalVisible: false }); |
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
| class StyleSheetFactory { | |
| static getSheet({ | |
| boxBgColor, | |
| fullscreen, | |
| bottomHalf, | |
| modalHeight | |
| }) { | |
| const styles = StyleSheet.create({ | |
| mainContainer: { flex: 1 }, | |
| modalWrapper: { |
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
| <CustomModal> | |
| <Text>I'm inside the modal!</Text> | |
| </CustomModal> |
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
| render() { | |
| const modalHeight = this.props.bottomHalf? this.height / 2: this.height; | |
| const styles = StyleSheetFactory.getSheet({ | |
| boxBgColor: this.props.boxBackgroundColor, | |
| fullscreen: this.props.fullscreen, | |
| modalHeight: modalHeight, | |
| bottomHalf: this.props.bottomHalf | |
| }); | |
| return ( | |
| <Modal |
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
| import React, { Component } from 'react'; | |
| import { | |
| View, | |
| Modal, | |
| StyleSheet, | |
| Dimensions, | |
| TouchableWithoutFeedback | |
| } from 'react-native'; |
NewerOlder