Skip to content

Instantly share code, notes, and snippets.

Emily emilyruby

Block or report user

Report or block emilyruby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Example_Button.jsx
class ExampleButton extends React.Component {
handleClick = () => {
console.log("I've been clicked!")
};
render() {
return (
<button onClick={this.handleClick}>
Click me!
</button>
View installmodule
npm install --save react-native-beacons-manager
@emilyruby
emilyruby / handlerange.js
Created Apr 14, 2018
Code for the HandleRange function
View handlerange.js
handleRange = (data) => {
for (var i = 0; i < data.beacons.length; i++) {
if (this.state.activeChallenge && data.beacons[i].uuid === this.state.activeChallenge.BeaconIDs[0]) {
this.solvedChallenge();
}
}
}
@emilyruby
emilyruby / start_ranging.js
Created Apr 14, 2018
Start Ranging for Beacons in React-Native
View start_ranging.js
await Beacons
.startRangingBeaconsInRegion(
'IBeacons',
'uuid'
)
@emilyruby
emilyruby / gist:3e8a8ff280981c0a780ec605341b5a8f
Created Apr 14, 2018
Set up new React-Native Application
View gist:3e8a8ff280981c0a780ec605341b5a8f
react-native init TreasureCache
View aria_vue.vue
<template>
<div
:aria-hidden="!isActive"
role="button">
</div>
</template>
<script>
export default {
data: () => ({
View aria_example.html
<li tabindex="0" class="checkbox" role="checkbox" checked aria-checked="true">
Check Me
</li>
View no_aria_example.html
<li tabindex="0" class="checkbox" checked>
Check Me
</li>
You can’t perform that action at this time.