Skip to content

Instantly share code, notes, and snippets.

View mohamedhamdy2017's full-sized avatar

mohamedhamdy2017

View GitHub Profile
import React, {Component} from 'react';
import {
View,
Text,
Image,
TouchableOpacity,
TextInput,
FlatList,
StyleSheet,
ScrollView,
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',
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
}
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',
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) => {
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:
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 {
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() {
import React, { Component } from 'react';
import {
StyleSheet,
Button,
View, FlatList, Text
} from 'react-native';
import PlacesInput from './components/PlacesInput'
import PlaceList from './components/PlaceList'