Skip to content

Instantly share code, notes, and snippets.

@AndreiCalazans
Last active September 23, 2019 11:54
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 AndreiCalazans/02ba7e05d2ad79a4e179b9f11fdd44be to your computer and use it in GitHub Desktop.
Save AndreiCalazans/02ba7e05d2ad79a4e179b9f11fdd44be to your computer and use it in GitHub Desktop.
import {
Composition,
ViewRef,
TextRef,
TextInputRef,
ButtonRef
} from '@youi/react-native-youi';
import { Hero, MovieThubnail } from './shared-components';
export default class MovieLanderRef React.Component {
render() {
return (
<Composition source="Movies_Main">
<Hero />
</ViewRef>
<ListRef
name="MoviesList"
data={moviesArray}
renderItem={({ item }) => <MovieThumbnail {...item} />}
/>
</Composition>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment