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
| // cSpell:word commitlint typecheck | |
| pre-commit: | |
| parallel: true | |
| commands: | |
| type-check: | |
| glob: '*.{ts,tsx}' | |
| run: yarn typecheck | |
| lint: | |
| glob: '*.{js,ts,jsx,tsx}' |
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 soccerVR extends React.Component { | |
| render() { | |
| return ( | |
| <View style={styles.panel}> | |
| <View style={styles.logosContainer}> | |
| {/* Iterating over CLUBS and rendering content */} | |
| {CLUBS.map(club => ( | |
| <VrButton | |
| key={club.id} | |
| onClick={() => console.log("Click")} |
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 CLUBS = [ | |
| { | |
| id: "manutd", | |
| name: "Manchester United", | |
| logoUrl: "https://i.ibb.co/mBnCHjY/manUtd.png" | |
| }, | |
| { | |
| id: "barcelona", | |
| name: "Barcelona", |
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 soccerVR extends React.Component { | |
| render() { | |
| return ( | |
| <View style={styles.panel}> | |
| {/* This container will align all logos in center as row */} | |
| <View style={styles.logosContainer}> | |
| {/* Each view will have logo and name of club */} | |
| <View style={styles.logoHolder} /> | |
| <View style={styles.logoHolder} /> |
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
| /* | |
| * | |
| * HackerNews | |
| * | |
| */ | |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { useSelector, useDispatch, shallowEqual } from 'react-redux'; | |
| import { createStructuredSelector } from 'reselect'; |
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
| /* | |
| * | |
| * HackerNews | |
| * | |
| */ | |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { connect } from 'react-redux'; | |
| import { createStructuredSelector } from 'reselect'; |
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
| poppyField.style({ | |
| imagePath: 'https://farm9.staticflickr.com/8295/8007075227_dc958c1fe6_z_d.jpg', | |
| }).then((resp) => { | |
| this.setState((state) => ({ | |
| styledImagePath: state.styledImagePath.concat([resp.imagePath]), | |
| })); | |
| }).catch((err) => { | |
| console.log(err); | |
| }); |
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 RNFritz from 'react-native-fritz'; | |
| RNFritz.configure(); |
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 { RNFritzVisionImageStyling } from 'react-native-fritz'; | |
| const poppyField = await RNFritzVisionImageStyling({ | |
| name: 'poppyField', | |
| customModel: 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
| import { RNFritzVisionImageStyling } from 'react-native-fritz'; | |
| const darkKnights = await RNFritzVisionImageStyling({ | |
| name: 'darkKnights', | |
| modelIdentifier: '55cdc02f89174e1c8458690d5b8621ae', // Your model identifier here | |
| customModel: true, | |
| modelVersion: 1, | |
| }); |
NewerOlder