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, { SFC } from 'react' | |
| import { View, Text, Image, TouchableOpacity } from 'react-native' | |
| import styles from './styles' | |
| interface PreviewProps { | |
| preview: Preview | |
| } | |
| interface Preview { | |
| previewImage: string |
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 from 'react' | |
| import { View, Text, Dimensions } from 'react-native' | |
| import Carousel from 'react-native-snap-carousel' | |
| import PreviewSlide from './PreviewSlide' | |
| import styles from './styles' | |
| const convertViewportWidth = (percentage, viewportWidth) => { | |
| const value = percentage * viewportWidth / 100 | |
| return Math.round(value) | |
| } |
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 } from 'react-native' | |
| import VideoCarousel from './VideoCarousel' | |
| import styles from './styles' | |
| import { LinearGradient } from 'expo' | |
| import api from '../../services/FixtureApi' | |
| import Spinner from '../Spinner' | |
| class Home extends Component { | |
| constructor() { |
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 from 'react' | |
| import { View, ActivityIndicator } from 'react-native' | |
| import styles from './Home/styles' | |
| import { LinearGradient } from 'expo' | |
| const Spinner = () => { | |
| return ( | |
| <LinearGradient colors={['#F2F2F2', '#3061D9']} style={styles.loader}> | |
| <ActivityIndicator size="large" color="#fff" /> | |
| </LinearGradient> |
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 Home from './views/Home' | |
| export default Home |
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
| export default { | |
| getVideos: () => { | |
| return { | |
| ok: true, | |
| data: require('../fixtures/Videos.json'), | |
| } | |
| }, | |
| } |
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
| [ | |
| { | |
| "name": "Sea trip", | |
| "previewImage": "https://res.cloudinary.com/davhyl8f2/image/upload/v1539689606/pexels-photo-1481096_bknyjx.jpg", | |
| "id": "c1r342c2", | |
| "duration": "0:55" | |
| }, | |
| { | |
| "name": "In mountains", | |
| "previewImage": "https://res.cloudinary.com/davhyl8f2/image/upload/v1539689606/pexels-photo-1480799_xe2h5h.jpg", |
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
| <%= if @issues.all_issues_are_resolved? %> | |
| <%= if @issues.has_selected_filters? %> | |
| All selected issues are resolved. | |
| <% else %> | |
| All issues are resolved. | |
| <% end %> | |
| <% end %> |
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
| <div class="discussion-item"> | |
| <%= discussion.name_with_time %> | |
| </div> |
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, Image, Platform, Text } from 'react-native'; | |
| import LightText from '../Text/LightText'; | |
| import fonts from '../../assets/fonts/fonts' | |
| import { softScreenColor } from '../../assets/styles/screens'; | |
| import colors from '../../assets/styles/colors'; | |
| import customPropTypes from '../../utils/customPropTypes'; |