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
componentDidMount(){ | |
this.getToken() // Panggil function getToken | |
} | |
// Bikin function getToken | |
function getToken(){ | |
const token = localStorage.getItem('item') | |
console.log(token) | |
} |
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
As for now, we don't need any of your data at all | |
We just want you to try and play my game |
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
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "AppDelegate.h" |
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
var db = firebase.database(); | |
var ref = db.ref("students"); | |
ref.orderByChild("city").equalTo("san_fransisco").on("value", function(snapshot) { | |
ref.orderByChild("age").equalTo(17).on("value", function(snapshot) { | |
console.log(snapshot.val()); | |
}); | |
}); |
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 { StyleSheet } from 'react-native'; | |
module.exports = StyleSheet.create({ | |
container:{ | |
flex: 1, | |
justifyContent: 'center', | |
alignItems: 'center', | |
padding: 40 | |
}, | |
input:{ |
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, { Component } from 'react'; | |
import { | |
View, | |
Text, | |
TextInput, | |
TouchableOpacity, | |
StyleSheet | |
} from 'react-native'; | |
import styles 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
'use strict'; | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
TabBarIOS, | |
StyleSheet, | |
Text, | |
View | |
} from 'react-native'; |
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, { Component } from 'react'; | |
import { | |
Text, | |
View, | |
StyleSheet, | |
} from 'react-native'; | |
const API_KEY = 'Your-personal-OAuth-token'; | |
const ROOT_URL = 'https://www.eventbriteapi.com/v3/events/search/'; |
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, { Component} from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
View, | |
TextInput, | |
TouchableOpacity, | |
ScrollView, | |
AsyncStorage, | |
} from 'react-native'; |
NewerOlder