Skip to content

Commit

Permalink
Changed modal view to scrollview.
Browse files Browse the repository at this point in the history
  • Loading branch information
caroaguilar committed Feb 24, 2017
1 parent 07d151d commit a256736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/Doctor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react'
import { Text, TouchableOpacity, View } from 'react-native'
import { ScrollView, Text, TouchableOpacity, View } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome';

import styles from './styles/doctor'
Expand All @@ -13,7 +13,7 @@ class Doctor extends Component {
let doctor = this.props.doctor;

return (
<View style={styles.modal}>
<ScrollView style={styles.modal}>
<View style={styles.toolbar}>
<TouchableOpacity onPress={this.props.closeModal}>
<Icon name="close" size={30} color="#FFF" />
Expand All @@ -32,7 +32,7 @@ class Doctor extends Component {
<Text style={styles.text}>{doctor.stories}</Text>
<Text style={styles.text}>{doctor.description}</Text>
</View>
</View>
</ScrollView>
)
}
}
Expand Down

0 comments on commit a256736

Please sign in to comment.