{"action":"created","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/225","repository_url":"https://api.github.com/repos/gcanti/tcomb-form-native","labels_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/225/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/225/events","html_url":"https://github.com/gcanti/tcomb-form-native/issues/225","id":173258276,"number":225,"title":"Overriding stye","user":{"login":"btoueg","id":498190,"avatar_url":"https://avatars.githubusercontent.com/u/498190?v=3","gravatar_id":"","url":"https://api.github.com/users/btoueg","html_url":"https://github.com/btoueg","followers_url":"https://api.github.com/users/btoueg/followers","following_url":"https://api.github.com/users/btoueg/following{/other_user}","gists_url":"https://api.github.com/users/btoueg/gists{/gist_id}","starred_url":"https://api.github.com/users/btoueg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btoueg/subscriptions","organizations_url":"https://api.github.com/users/btoueg/orgs","repos_url":"https://api.github.com/users/btoueg/repos","events_url":"https://api.github.com/users/btoueg/events{/privacy}","received_events_url":"https://api.github.com/users/btoueg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-25T17:04:26Z","updated_at":"2016-11-25T08:26:59Z","closed_at":null,"body":"Since https://github.com/gcanti/tcomb-form-native/commit/869dd50b2aca4c581c0a964edc251bd94815e964, I can't properly override `tcomb-form-native` style.\n- tcomb-form-native v0.6.1\n- react-native v0.31.0\n\nHere is how I override tcomb Form style:\n\n``` javascript\nimport {stylesheet} from './style';\nt.form.Form.stylesheet = stylesheet;\n```\n\nHere is my code:\n\n``` javascript\n  render() {\n    return = (<t.form.Form\n      {...this.props}  // props does not contain any stylesheet\n      context={{\n        onTiming: this.onTiming,\n        onLocation: this.onLocation,\n        getTimeSpend: this._getTimeSpend\n      }}\n      onChange={this.onChange}\n      options={this.state.options}\n      ref=\"form\"\n    />);\n  }\n```\n\nIn my custom component:\n\n``` javascript\nexport class Group extends t.form.Struct {\n  getTemplate() {\n    return (locals) => {\n      var stylesheet = locals.stylesheet;  // unaware of anything that has been overriden\n      var groupStyle = stylesheet.group.normal;\n\n      return (<View style={groupStyle}>\n        {t.form.Form.templates.struct(locals)}\n      </View>);\n    };\n  }\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/comments/262904085","html_url":"https://github.com/gcanti/tcomb-form-native/issues/225#issuecomment-262904085","issue_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/225","id":262904085,"user":{"login":"alvaromb","id":289640,"avatar_url":"https://avatars.githubusercontent.com/u/289640?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaromb","html_url":"https://github.com/alvaromb","followers_url":"https://api.github.com/users/alvaromb/followers","following_url":"https://api.github.com/users/alvaromb/following{/other_user}","gists_url":"https://api.github.com/users/alvaromb/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaromb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaromb/subscriptions","organizations_url":"https://api.github.com/users/alvaromb/orgs","repos_url":"https://api.github.com/users/alvaromb/repos","events_url":"https://api.github.com/users/alvaromb/events{/privacy}","received_events_url":"https://api.github.com/users/alvaromb/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T08:26:59Z","updated_at":"2016-11-25T08:26:59Z","body":"Hi @btoueg!\r\n\r\nSorry, never user stylesheet override. Can you pass your stylesheet through the options object?\r\n\r\n```js\r\nconst options = {\r\n  stylesheet: stylesheet,\r\n}\r\n```"}}
{"actor":{"display_login":"alvaromb"}}