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
| <Swiper | |
| images={this.state.images} | |
| imageHeight={300} | |
| textColor="#fff" | |
| swipeBottom={e => console.log('swipe bottom: ', e)} | |
| swipeTop={e => console.log('swipe top: ', e)} | |
| /> |
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
| renderImages() { | |
| if (this.state.images.length > 0) { | |
| return this.state.images.map(image => ( | |
| <View key={image.id} style={styles.imageContainer}> | |
| <Image style={styles.image} source={{uri: image.imageUrl}} /> | |
| </View> | |
| )); | |
| } | |
| return <></>; |
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
| componentDidMount() { | |
| const images = getImages(); | |
| const {width} = Dimensions.get('window'); | |
| this.setState({...this.state, images, width}); | |
| } |
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
| <FlatList | |
| horizontal | |
| pagingEnabled | |
| data={images} | |
| style={styles.flatlist} | |
| keyExtractor={image => image.id} | |
| showsHorizontalScrollIndicator={false} | |
| renderItem={({item}) => { | |
| return ( | |
| <View style={styles.imageContainer}> |
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
| <script type="text/javascript"> | |
| var appId = '59ac5359d8f040f8b8ba7ae3a10a2b53'; | |
| var tempAppCert = 'a6ca16d39ab44458b0f32532865cf56f'; | |
| var tempChannelName = 'admin_2c6eb05c-cda3-471c-a96d-027e91322592'; | |
| var tempToken = '00659ac5359d8f040f8b8ba7ae3a10a2b53IAChsMiJuhtkQaHqI+wH7nDfZNlIWxrD/fjmYDbTrFb8da+8n0LOZlCnIgAaSMdYmmA8XgQAAQAAAAAAAgAAAAAAAwAAAAAABAAAAAAA'; | |
| var userId = '2100'; | |
| var remoteUserId = '5396'; | |
| var remoteUserFullname = 'San Francisco Test USer'; | |
| var localContainer = 'agora_local'; | |
| var remoteContainer = 'agora_remote'; |
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 Modal, { ModalContent } from 'react-native-modals'; | |
| import SlideAnimation from 'react-native-modals/dist/animations/SlideAnimation'; |
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
| <Modal | |
| visible={this.state.modalVisible} | |
| onTouchOutside={() => this.setState({...this.state, modalVisible: false})} | |
| swipeDirection={['left', 'right']} | |
| modalAnimation={new SlideAnimation({ | |
| slideFrom: 'bottom' | |
| })} | |
| onSwipeOut={() => { | |
| this.setState({...this.state, 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
| <Modal | |
| isVisible={this.state.modalVisible} | |
| style={styles.modal} | |
| coverScreen={this.state.coverScreen} | |
| onBackdropPress={() => this.setState({ | |
| ...this.state, | |
| modalVisible: false | |
| })} | |
| onSwipeComplete={() => this.setState({ | |
| ...this.state, |
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 Modal from "react-native-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
| SelectList selectList = new SelectList(_SectionAPI.GetAllApplicationTypes(), "Id", "ApplicationName", "- Type -"); | |
| SelectListItem item = selectList.FirstOrDefault(i => i.Value == "your value"); | |
| item.Selected = true; | |
| ViewBag.ApplicationTypes = selectList; |