This file contains 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 response = await axios({ | |
method: 'GET', | |
url: 'https://app.plex.coach/plapi/v1/partners/assessments/next-assessment', | |
headers: { | |
apikey: PL_API_KEY, | |
learnerid: '94752476999971', | |
}, | |
}); |
This file contains 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
POST https://app.plex.coach/plapi/v1/partners/assessments/submit-assessment | |
Header | |
{ | |
apikey: API_KEY, | |
learnerid: '94752476999971' | |
} | |
Body | |
{ |
This file contains 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
Belajar Bahasa Sunda :v | |
hiji dua tilu opat lima genep tujuh dalapan salapan sapuluh | |
wilujeng enjing/beurang/sore/wengi | |
aku kamu dia mereka kita -> urang maneh manehna manehna arurang | |
aku cinta ke kamu -> urang bogoh ka maneh | |
*ka = ke | |
*sama = sarua | |
selamat ulang tahun buat teman-> wilujeng milad jeung babaturan | |
*nyieun = buat (Membuat) | |
*jeung = buat |
This file contains 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 requestCameraPermission = async () => { | |
try { | |
const granted = await PermissionsAndroid.request( | |
PermissionsAndroid.PERMISSIONS.CAMERA, | |
{ | |
title: "App Camera Permission", | |
message: "App needs access to your camera ", | |
buttonNeutral: "Ask Me Later", | |
buttonNegative: "Cancel", | |
buttonPositive: "OK" |
This file contains 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
{ | |
"data": [ | |
{ | |
"id": 124, | |
"author_id": 13802, | |
"category_id": 1, | |
"image": "posts/November2021/IFUtY4gc4oAHGM6cMdPX.jpg", | |
"status": "PUBLISHED", | |
"featured": false, | |
"advertisement": null, |
This file contains 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 from 'axios'; | |
import {Action, Thunk, action, thunk} from 'easy-peasy'; | |
import {API_TOKEN, BASE_URL} from 'react-native-dotenv'; | |
interface IKabar { | |
id: number; | |
full_name: string; | |
short_name?: string; | |
image: string; | |
slug?: string; |
This file contains 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 {PixelRatio, Dimensions} from 'react-native'; | |
const windowsWidth = Dimensions.get('window').width; | |
const ratio = windowsWidth / 360; | |
export function normalize(size: number): number { | |
const newSize = size * ratio; | |
return Math.round(PixelRatio.roundToNearestPixel(newSize)); | |
} |
This file contains 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 LoginScreen = () => { | |
const { | |
control, | |
handleSubmit, | |
formState: {errors, isValid}, | |
getValues | |
} = useForm({mode: 'onBlur'}) | |
const onSubmit = data => console.log(data) | |
This file contains 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 {SafeAreaView} from 'react-native' | |
import {Button, TextInputField} from './components/' | |
import {useForm, Controller} from 'react-hook-form' | |
const LoginScreen = () => { | |
const { | |
control, | |
handleSubmit, | |
formState: {errors, isValid} | |
} = useForm({mode: 'onBlur'}) |