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
X | Y | WIN | LOSE | |
---|---|---|---|---|
0 | 0 | (A=B) | (A≠B) | |
0 | 1 | (A=B) | (A≠B) | |
1 | 0 | (A=B) | (A≠B) | |
1 | 1 | (A≠B) | (A=B) |
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
/* eslint-disable no-undef */ | |
import React, { useEffect, useState } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { useSelector } from 'react-redux'; | |
import icLocation from '~/public/assets/icons/ic_location.png'; | |
import icMyLocation from '~/public/assets/icons/ic_my_location.png'; | |
import { getCurrentLocation } from '~/lib/domUtil'; | |
import styles from './styles.json'; | |
const GoogleMapView = ({ width, height, lat, lng, zoom, |
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 Head from 'next/head'; | |
... | |
const AddressPage = () => { | |
return ( | |
<App> | |
<Head> | |
<script async defer src={constants.GOOGLE_MAP_API_URL} /> | |
</Head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Here is the title</title> | |
<!-- Contoh css internal --> | |
<style> | |
/* Styling untuk semua tag h1 */ | |
h1 { | |
color: red; | |
text-decoration: underline; |
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
<!DOCTYPE html> <!-- Deklarasi yang menunjukkan bahwa ini adalah dokumen HTML 5 --> | |
<html> <!-- Root dari sebuah halaman HTML --> | |
<head> <!-- Elemen yang mengandung semua informasi meta dari sebuah Halaman Web --> | |
<title>Here is the title</title> <!-- Judul dari sebuah dokumen web --> | |
</head> | |
<body> <!-- Elemen yang mengandung isi yang akan tampil di browser --> | |
<h1>This is a sample heading.</h1> <!-- Elemen judul dengan ukuran terbesar --> | |
<p>This is a sample <b>paragraph</b>.</p> <!-- Elemen paragraf --> |
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
"ios": { | |
"supportsTablet": true, | |
"bundleIdentifier": "galihlprakoso.com.reactnativedasar" | |
}, | |
"android": { | |
"package": "galihlprakoso.com.reactnativedasar" | |
} |
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'; | |
//Mengimport TextInput, FlatList, TouchableHighlight, KeyboardAvoidingView | |
import { StyleSheet,Text, View, TextInput, | |
FlatList, TouchableHighlight, KeyboardAvoidingView } from 'react-native'; | |
class Pahlawan extends React.Component { | |
//Hapus inisialisasi state dan kode untuk membuat teks tidak berkedip lagi | |
render(){ |
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 styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
flexDirection:'row',// <-- 1 | |
alignItems: 'center',// <-- 2 | |
justifyContent: 'center',// <-- 3 | |
backgroundColor: '#fff' | |
}, | |
namaPahlawan:{ | |
color:'red', |
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 { StyleSheet, Text, View } from 'react-native'; | |
//Custom Component bernama Pahlawaan | |
class Pahlawan extends React.Component { | |
state = { tampil:true };//Menginisialisasi state tampil=true sebagai nilai awal | |
componentDidMount(){ | |
setInterval(() => ( //Berfungsi untuk memanggil fungsi secara berulang-ulang |
NewerOlder