This file contains 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
<BgView> | |
<ScrollView contentContainerStyle={{justifyContent: 'center'}} style={[{height:height}]}> | |
{cells} | |
</ScrollView> | |
</BgView> |
This file contains 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
<BgView> | |
<ScrollView contentContainerStyle={{justifyContent: 'center'}} style={[{height:height}]}> | |
{cells} | |
</ScrollView> | |
</BgView> |
This file contains 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
<View> | |
<ScrollView contentContainerStyle={{justifyContent: 'center'}} style={[{height:height}]}> | |
{cells} | |
</ScrollView> | |
</View> |
This file contains 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 { ListView } from 'react-native' | |
import { FlickrImages } from './FlickrImages' | |
import ImageRow from './ImageRow' | |
import { BgView } from './Background' | |
import style from './Style' | |
class HomeScreen extends React.Component { | |
constructor(props) { |
This file contains 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 { ListView } from 'react-native' | |
import { FlickrImages } from './FlickrImages' | |
import ImageRow from './ImageRow' | |
import { BgView } from './Background' | |
import style from './Style' | |
class HomeScreen extends React.Component { | |
constructor(props) { |
This file contains 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, Image } from 'react-native' | |
import style from './Style' | |
const ImageRow = (props) => ( | |
<View style={style.cellContainer}> | |
<Image style={style.imageContainer} source={{uri:props.uri}}/> | |
</View> |
This file contains 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 { Image, View } from 'react-native' | |
import bgImage from './assets/bg_transparent.png' | |
import style from './Style' | |
export const BaseView = (props) => { | |
return ( | |
<View | |
{...props} |
This file contains 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 { Text, View, Button, Dimensions, Image, ScrollView } from 'react-native' | |
import { FlickrImages } from './FlickrImages' | |
import { BgView } from './Background' | |
import style from './Style' | |
class HomeScreen extends React.Component { | |
renderCells (data) { |
This file contains 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 pole from 'pole' | |
this.setState({ | |
pollLocation: pole({interval: | |
LOCATION_POLL_FREQUENCY}, ( | |
callback) => { | |
let now = new Date() | |
let data = JSON.stringify({'lat': 20, | |
'long': 20, 'time': now }) | |
fetch('http://localhost:8080', { |
OlderNewer