Skip to content

Instantly share code, notes, and snippets.

@AndreiCalazans
Created September 11, 2019 18:19
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/f28d1f427e18277aa111ebd16a22496e to your computer and use it in GitHub Desktop.
Save AndreiCalazans/f28d1f427e18277aa111ebd16a22496e to your computer and use it in GitHub Desktop.
import {
Composition,
ViewRef,
TextRef,
TextInputRef,
ButtonRef
} from '@youi/react-native-youi';
export default class Login React.Component {
render() {
return (
<Composition source="Login_Main">
<TextRef name="Title" text="Your Cool Brand" />
<ViewRef name="InputsContainer">
<TextInputRef name="UsernameInput" />
<TextInputRef name="PasswordInput" />
</ViewRef>
<ViewRef name="ButtonsContainer">
<ButtonRef name="LogInBtn" />
<ButtonRef name="ForgotPasswordBtn" />
</ViewRef>
</Composition>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment