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 const indonesianCuisine = [ | |
{ | |
name: "Balique Restaurant", | |
address: "Uluwatu St No.39, Jimbaran, South Kuta, Badung Regency, Bali 80361", | |
phone: "(0361) 704945", | |
mapLink: "https://maps.app.goo.gl/m7QLELYdeDMdAerT6", | |
isHalal: false, | |
image: "https://cdn.jsdelivr.net/gh/akimabs/asset/Nearby/Resto/Balique.jpg", | |
distance: "280 m", | |
}, |
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 { Dimensions, StyleSheet, View, Text } from "react-native"; | |
import { RecyclerListView, DataProvider, LayoutProvider } from "recyclerlistview"; | |
// Screen width | |
const { width } = Dimensions.get("window"); | |
// Define the data provider with a rowHasChanged method to optimize the list rendering | |
const dataProvider = new DataProvider((r1, r2) => r1 !== r2); |
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 { HttpStatus, Injectable } from '@nestjs/common'; | |
import { StatusMessage } from 'src/filters/message.constant'; | |
import { Response } from 'src/models/response.model'; | |
import { createWorker } from 'tesseract.js'; | |
import { ResultFindTotalPrice } from './images'; | |
import * as fs from 'fs'; | |
require('dotenv').config(); | |
@Injectable() |
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 axios, { AxiosResponse } from 'axios'; | |
import { BaseRequest, ResultType } from 'types'; | |
import { BASE_URL } from 'env'; | |
/** | |
* Request helper for HTTPRequest | |
* @param params must receive Object | |
* @param id must receive String or Number | |
* @param headers must receive Object | |
* @param body must receive Object |
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 const AdjustEventTrackerProperties = ({ event, parameter }: PropsAdjustEventParameter) => { | |
const adjustEventCode = AdjustEnum.properties[event]?.code ?? ''; | |
// console.log('event :', event) | |
// console.log('event code :', adjustEventCode) | |
let adjustEvent = new AdjustEvent(adjustEventCode); | |
parameter?.map(item => { | |
// console.log('event parameter key :', item.key) | |
// console.log('event parameter value :', item.value) | |
adjustEvent.addCallbackParameter(item.key, item.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
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; | |
}; |
NewerOlder