Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions screens/SectionScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {
StatusBar,
WebView,
Linking,
ScrollView
ScrollView,
} from "react-native";
import { Icon } from "expo";
import {Ionicons} from "@expo/vector-icons";
import Markdown from "react-native-showdown";
import { PlayIcon } from "../components/Icons";
import {PlayIcon} from "../components/Icons";

class SectionScreen extends React.Component {
static navigationOptions = {
header: null
header: null,
};

componentDidMount() {
Expand All @@ -25,15 +25,15 @@ class SectionScreen extends React.Component {
}

render() {
const { navigation } = this.props;
const {navigation} = this.props;
const section = navigation.getParam("section");

return (
<ScrollView>
<Container>
<StatusBar hidden />
<Cover>
<Image source={{ uri: section.image.url }} />
<Image source={{uri: section.image.url}} />
<PlayWrapper>
<TouchableOpacity
underlayColor="transparent"
Expand All @@ -42,12 +42,12 @@ class SectionScreen extends React.Component {
}}
>
<PlayView>
<PlayIcon style={{ marginLeft: -10 }} />
<PlayIcon style={{marginLeft: -10}} />
</PlayView>
</TouchableOpacity>
</PlayWrapper>
<Wrapper>
<Logo source={{ uri: section.logo.url }} />
<Logo source={{uri: section.logo.url}} />
<Subtitle>{section.subtitle}</Subtitle>
</Wrapper>
<Title>{section.title}</Title>
Expand All @@ -57,14 +57,14 @@ class SectionScreen extends React.Component {
onPress={() => {
this.props.navigation.goBack();
}}
style={{ position: "absolute", top: 20, right: 20 }}
style={{position: "absolute", top: 20, right: 20}}
>
<CloseView>
<Icon.Ionicons
<Ionicons
name="ios-close"
size={36}
color="#4775f2"
style={{ marginTop: -2 }}
style={{marginTop: -2}}
/>
</CloseView>
</TouchableOpacity>
Expand Down