{"action":"created","issue":{"url":"https://api.github.com/repos/bmcmahen/panza/issues/21","repository_url":"https://api.github.com/repos/bmcmahen/panza","labels_url":"https://api.github.com/repos/bmcmahen/panza/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/bmcmahen/panza/issues/21/comments","events_url":"https://api.github.com/repos/bmcmahen/panza/issues/21/events","html_url":"https://github.com/bmcmahen/panza/issues/21","id":162572633,"number":21,"title":"Allow customization of config without root context","user":{"login":"hammadj","id":7143583,"avatar_url":"https://avatars.githubusercontent.com/u/7143583?v=3","gravatar_id":"","url":"https://api.github.com/users/hammadj","html_url":"https://github.com/hammadj","followers_url":"https://api.github.com/users/hammadj/followers","following_url":"https://api.github.com/users/hammadj/following{/other_user}","gists_url":"https://api.github.com/users/hammadj/gists{/gist_id}","starred_url":"https://api.github.com/users/hammadj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammadj/subscriptions","organizations_url":"https://api.github.com/users/hammadj/orgs","repos_url":"https://api.github.com/users/hammadj/repos","events_url":"https://api.github.com/users/hammadj/events{/privacy}","received_events_url":"https://api.github.com/users/hammadj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-27T23:43:00Z","updated_at":"2016-06-30T16:39:20Z","closed_at":null,"body":"supplying a context from the app root isn't always an option in react native (i.e. when using multiple roots) and the current way of setting up the custom config options is pretty messy (relies on user remembering to Object.assign to default config).\r\n\r\nI propose we have something like this where the user can call once anywhere in their application:\r\n\r\n```\r\nimport panza from 'panza'\r\n\r\npanza.configure({\r\n  colors: {\r\n    primary: '#505050',\r\n    customColor: '#123456'\r\n  }\r\n})\r\n```\r\n\r\nAlso, I think we should change how the size configs work. Instead of arrays, we should have objects with keys:\r\n```\r\nconst fontSizes = {\r\n  1: 48,\r\n  2: 32,\r\n  3: 24,\r\n  4: 20,\r\n  5: 17,\r\n  6: 15,\r\n  7: 12\r\n}\r\n```\r\n\r\nThis way users will be able to customize the font/line-height/scale configurations easier\r\n\r\nLet me know what you think and I can put something together sometime soon."},"comment":{"url":"https://api.github.com/repos/bmcmahen/panza/issues/comments/229715597","html_url":"https://github.com/bmcmahen/panza/issues/21#issuecomment-229715597","issue_url":"https://api.github.com/repos/bmcmahen/panza/issues/21","id":229715597,"user":{"login":"hammadj","id":7143583,"avatar_url":"https://avatars.githubusercontent.com/u/7143583?v=3","gravatar_id":"","url":"https://api.github.com/users/hammadj","html_url":"https://github.com/hammadj","followers_url":"https://api.github.com/users/hammadj/followers","following_url":"https://api.github.com/users/hammadj/following{/other_user}","gists_url":"https://api.github.com/users/hammadj/gists{/gist_id}","starred_url":"https://api.github.com/users/hammadj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammadj/subscriptions","organizations_url":"https://api.github.com/users/hammadj/orgs","repos_url":"https://api.github.com/users/hammadj/repos","events_url":"https://api.github.com/users/hammadj/events{/privacy}","received_events_url":"https://api.github.com/users/hammadj/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T16:39:20Z","updated_at":"2016-06-30T16:39:20Z","body":"Yea `outlined` would be better, and we can also add `transparent` as a replacement for the naked button."}}
{"actor":{"display_login":"hammadj"}}