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
| https://www.linkedin.com/in/annabelnlau |
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 { | |
| Image, | |
| View, | |
| asset | |
| } from 'react-vr' | |
| function Clock () { | |
| return ( | |
| <View> |
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 { | |
| AppRegistry, | |
| asset, | |
| Pano, | |
| View | |
| } from 'react-vr'; | |
| import Clock from './components/clock' |
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 { | |
| VrButton, | |
| View, | |
| Text, | |
| Image, | |
| asset | |
| } from 'react-vr' | |
| export default class Clock extends Component { |
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
| toggleDisplayText() { | |
| if (!this.state.displayingClockText) { | |
| this.setState({ displayingClockText: true }) | |
| } else { | |
| this.setState({ displayingClockText: false }) | |
| } | |
| } |
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
| export default class Clock extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| displayingClockText: false | |
| } | |
| ... |
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
| <Image | |
| source={asset('clock.png')} | |
| style={{ | |
| position: 'absolute', | |
| width: 3, | |
| height: 3, | |
| layoutOrigin: [0.7, 0.7], | |
| transform: [{ translate: [19, 10.5, 8] }, { rotateY: -90 }], | |
| }} | |
| /> |
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
| <Text | |
| style={{ | |
| backgroundColor: '#777879', | |
| fontSize: 0.8, | |
| fontWeight: '400', | |
| layoutOrigin: [0.5, 0.5], | |
| paddingLeft: 0.2, | |
| paddingRight: 0.2, | |
| textAlign: 'center', | |
| textAlignVertical: 'center', |