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, | |
Text, | |
Image, | |
TouchableOpacity, | |
TextInput, | |
FlatList, | |
StyleSheet, | |
ScrollView, |
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
const Parameters = {UID: '26.2716025' & '50.2017993'} | |
export const task_register = async (lat,lon) => { | |
let url = `https://wainnakel.com/api/v1/GenerateFS.php?uid=${lat},${lon}&get_param=value` | |
const res = await fetch(url, { | |
method: "POST", | |
headers: { | |
Accept: 'application/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
import React, { Component } from 'react'; | |
import { StyleSheet, Text, View, Image, StatusBar, ImageBackground } from 'react-native'; | |
import { task_register } from '../api' | |
import { Button } from 'native-base' | |
class HomeScreen extends Component { | |
static navigationOptions={ | |
header: null | |
} |
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
const Parameters = {UID: '26.2716025' & '50.2017993'} | |
export const task_register = async (lat,lon) => { | |
let url = `https://wainnakel.com/api/v1/GenerateFS.php?uid=${lat},${lon}&get_param=value` | |
const res = await fetch(url, { | |
method: "POST", | |
headers: { | |
Accept: 'application/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
import { IS_FETCHING, FETCHING_SUCCESS, FETCHING_FAILED } from '../actions/actionTypes' | |
const Parameters = {UID: '26.2716025' & '50.2017993'} | |
export const task_register = () => { | |
let url = 'https://wainnakel.com/api/v1/GenerateFS.php?uid=26.2716025,50.2017993&get_param=value' | |
return async (dispatch) => { |
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 { IS_FETCHING, FETCHING_SUCCESS, FETCHING_FAILED } from '../actions/actionTypes' | |
const INIT_STATE = { | |
loading: false, lat: '', lon: '', name: '', rate: '', cat: '' | |
} | |
export default (state= INIT_STATE, action) => { | |
switch(action.type){ | |
case IS_FETCHING: |
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 { Text, View, StyleSheet} from 'react-native' | |
import { Button } from 'native-base' | |
import { task_register } from '../api' | |
import MapView, { Callout, PROVIDER_GOOGLE } from 'react-native-maps' | |
import { Icon } from 'react-native-elements'; | |
class DetailsScreen extends Component { |
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 { ScrollView, View, TextInput, Text, Image, StatusBar } from 'react-native' | |
import { Button } from 'native-base' | |
class LoginScreen extends Component { | |
static navigationOptions = { | |
header: null | |
} | |
render() { |
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 { | |
StyleSheet, | |
Button, | |
View, FlatList, Text | |
} from 'react-native'; | |
import PlacesInput from './components/PlacesInput' | |
import PlaceList from './components/PlaceList' | |