Skip to content

Instantly share code, notes, and snippets.

@zsajjad
Created January 19, 2020 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsajjad/92daa635a946a49fff24d3a2cc54c178 to your computer and use it in GitHub Desktop.
Save zsajjad/92daa635a946a49fff24d3a2cc54c178 to your computer and use it in GitHub Desktop.
React 360 Step 3: Interactions
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")}
onEnter={() => console.log("Enter")}
onExit={() => console.log("Exit")}
style={styles.logoHolder}
>
{/* <View> */}
<Image style={styles.logoImage} source={{ uri: club.logoUrl }} />
<Text style={styles.logoText}>{club.name}</Text>
{/* </View> */}
</VrButton>
))}
</View>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment