For generic skin emulator with default apis (without google apis):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-29;default;x86"
import React, { | |
createContext, | |
useContext, | |
useEffect, | |
useRef, | |
useState, | |
} from 'react'; | |
import * as Device from 'expo-device'; | |
import * as Notifications from 'expo-notifications'; | |
import Constants from 'expo-constants'; |
import React, { useState, useRef, useEffect } from 'react'; | |
import { | |
Animated, | |
FlatList, | |
I18nManager, | |
SafeAreaView, | |
StyleSheet, | |
Text, | |
TouchableOpacity, | |
View, |
// createUser and readUser is only necessary for signup and sign in page | |
const createUser = async (url, data) => { | |
try { | |
let response = await fetch(url, { | |
method: "POST", | |
headers: { | |
Accept: "application/json", | |
"Content-Type": "application/json", | |
}, | |
body: JSON.stringify(data), |
import React from 'react'; | |
import CameraScreen from './CameraScreen'; | |
export default function App() { | |
return ( | |
<CameraScreen/> | |
); | |
} |
import React from 'react'; | |
import { | |
Text, | |
ScrollView, | |
TouchableOpacity | |
} from 'react-native'; | |
import colors from '../assets/colors/colors'; | |
export default function SuggestionList({inputState,setInputState,list,name}) { |
import React, { useState, useEffect } from 'react'; | |
import { | |
Alert, | |
Modal, | |
StyleSheet, | |
Text, | |
View, | |
TouchableWithoutFeedback, | |
Keyboard, | |
TextInput, |
import React, { useState, useEffect, useRef } from 'react'; | |
import { StyleSheet, Text, Platform, View, TouchableOpacity } from 'react-native'; | |
import { Camera } from 'expo-camera'; | |
import { uploadImage,uploadData } from './api'; | |
import formValidation from './helper' | |
import {UPLOAD_IMAGE_API,UPLOAD_DATA_API} from "@env" | |
import colors from '../assets/colors/colors'; | |
import PreviewScreen from './PreviewScreen'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
import Spinner from 'react-native-loading-spinner-overlay'; |
// This function is the webhook's request handler. | |
exports = async function(payload,response) { | |
// mongodb connection setup | |
const mongodb = context.services.get("mongodb-atlas"); | |
const db = mongodb.db("objectAnnotation"); | |
const annotation = db.collection("annotation"); | |
//parse payload to Js object since mongodb use bson format for data transfer | |
const body =EJSON.parse(payload.body.text()); | |
import axios from "axios"; | |
const cheerio = require("cheerio"); | |
async function sleep(millis) { | |
return new Promise((resolve) => setTimeout(resolve, millis)); | |
} | |
const getData = async (customer_no, year, month) => { | |
const container = []; | |
const PromiseArr = []; |