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
| 1. Setup intent di AndroidManifest.xml | |
| note: url di sini karna sudah memakai react-native-config jadi tinggal panggil saja seperti | |
| @string/Static_url = urlmase.id | |
| isikan android:host dengan domain anda | |
| dan android:scheme dengan https/http(tergantung domainnya) | |
| <intent-filter> | |
| <action android:name="android.intent.action.VIEW" /> |
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, { useEffect, useRef, useState } from 'react'; | |
| import { Animated, FlatList, StyleSheet, View } from 'react-native'; | |
| import { Text } from 'app/components'; | |
| import { AnimatedGradient } from './box-helper'; | |
| const colors: string[] = [ | |
| '#069EC6', | |
| '#2D569A', | |
| '#87C054', | |
| '#F78A53', |
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 data = { | |
| Fields: [ | |
| { | |
| id: "3e88bbb7-f93c-4038-94ed-8870f8a5a454", | |
| name: "GOR Jakarta Mantep", | |
| address: "Jl, Sudirman Punya Gela", | |
| latitude: -6.392687, | |
| longitude: 106.389778, | |
| createdAt: "2021-09-16T01:51:31.288Z", | |
| updatedAt: "2021-09-16T01:51:31.288Z", |
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, { FC, useCallback, useEffect, useRef } from 'react'; | |
| import { PanResponder, Animated, View, StyleSheet, TouchableOpacity } from 'react-native'; | |
| import { heightPercentageToDP, widthPercentageToDP } from 'react-native-responsive-screen'; | |
| type ModalProps = { | |
| isVisible: boolean; | |
| height: number; | |
| onClose: () => void; | |
| children: any; | |
| }; |
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
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package smt6; | |
| import java.awt.*; | |
| import java.awt.event.*; | |
| import java.awt.geom.*; |
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
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package smt6; | |
| /** | |
| * | |
| * @author Z |
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, {useEffect, useState} from 'react'; | |
| import { | |
| View, | |
| SafeAreaView, | |
| StatusBar, | |
| Animated, | |
| StyleSheet, | |
| Text, | |
| } from 'react-native'; | |
| import {Colors} from '_styles'; |
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
| on actions | |
| export const UPDATE = (data, datapatch, datafix) => { | |
| return { | |
| type: 'UPDATE_ORDERS', | |
| payload: data, | |
| datapatch, | |
| datafix | |
| } | |
| } |
NewerOlder