{"action":"created","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/120","repository_url":"https://api.github.com/repos/gcanti/tcomb-form-native","labels_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/120/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/120/events","html_url":"https://github.com/gcanti/tcomb-form-native/issues/120","id":135600558,"number":120,"title":"refactor code inside customFormTemplate() to its own file","user":{"login":"flizzer","id":596833,"avatar_url":"https://avatars.githubusercontent.com/u/596833?v=3","gravatar_id":"","url":"https://api.github.com/users/flizzer","html_url":"https://github.com/flizzer","followers_url":"https://api.github.com/users/flizzer/followers","following_url":"https://api.github.com/users/flizzer/following{/other_user}","gists_url":"https://api.github.com/users/flizzer/gists{/gist_id}","starred_url":"https://api.github.com/users/flizzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flizzer/subscriptions","organizations_url":"https://api.github.com/users/flizzer/orgs","repos_url":"https://api.github.com/users/flizzer/repos","events_url":"https://api.github.com/users/flizzer/events{/privacy}","received_events_url":"https://api.github.com/users/flizzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/labels/Topic:%20Templates","name":"Topic: Templates","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-23T01:43:11Z","updated_at":"2016-02-24T14:52:22Z","closed_at":"2016-02-23T08:03:51Z","body":"Hi again.  I love how I'm able to use the customFormTemplate() method to override and gain complete freedom over how my form is presented; so, awesome work first of all!  \r\n\r\nMy code inside that method has grown to be way too long, however.  How can I refactor that code to a stand-alone template and just reference it?  Do I have to create a class which extends Component and then return the stand-alone template?\r\n\r\nThanks for your feedback and assistance in advance.\r\n\r\nBrian"},"comment":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/comments/188287535","html_url":"https://github.com/gcanti/tcomb-form-native/issues/120#issuecomment-188287535","issue_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/120","id":188287535,"user":{"login":"flizzer","id":596833,"avatar_url":"https://avatars.githubusercontent.com/u/596833?v=3","gravatar_id":"","url":"https://api.github.com/users/flizzer","html_url":"https://github.com/flizzer","followers_url":"https://api.github.com/users/flizzer/followers","following_url":"https://api.github.com/users/flizzer/following{/other_user}","gists_url":"https://api.github.com/users/flizzer/gists{/gist_id}","starred_url":"https://api.github.com/users/flizzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flizzer/subscriptions","organizations_url":"https://api.github.com/users/flizzer/orgs","repos_url":"https://api.github.com/users/flizzer/repos","events_url":"https://api.github.com/users/flizzer/events{/privacy}","received_events_url":"https://api.github.com/users/flizzer/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T14:52:22Z","updated_at":"2016-02-24T14:52:22Z","body":"Thanks very much for this.  I did create a stand-alone template and a class that extends component.  Do I then reference that component in JSX somewhere?  Thanks.\n\nBrian \n\n> On Feb 23, 2016, at 3:03 AM, Álvaro Medina Ballester <notifications@github.com> wrote:\n> \n> Hello @flizzer.\n> \n> You can follow the behaviour of the bootstrap templates in the library. For instance, look at checkbox.js https://github.com/gcanti/tcomb-form-native/blob/master/lib/templates/bootstrap/checkbox.js\n> \n> That's a template that you export and then you can use it with the template option for your fields. Look here to see how the Checkbox component uses it or accepts one from the options.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}