{"id":16667179,"url":"https://github.com/fiberjw/react-native-stylehooks","last_synced_at":"2025-10-01T07:31:43.106Z","repository":{"id":57340463,"uuid":"223549171","full_name":"FiberJW/react-native-stylehooks","owner":"FiberJW","description":" Responsive React Native styles made simple.","archived":false,"fork":false,"pushed_at":"2020-08-01T05:18:39.000Z","size":3640,"stargazers_count":46,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T10:01:53.792Z","etag":null,"topics":["css","expo","react","react-native","style","stylesheet"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-stylehooks","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FiberJW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-23T07:27:56.000Z","updated_at":"2023-09-07T06:21:29.000Z","dependencies_parsed_at":"2022-09-07T10:13:00.567Z","dependency_job_id":null,"html_url":"https://github.com/FiberJW/react-native-stylehooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Freact-native-stylehooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Freact-native-stylehooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Freact-native-stylehooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Freact-native-stylehooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FiberJW","download_url":"https://codeload.github.com/FiberJW/react-native-stylehooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234841986,"owners_count":18895143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","expo","react","react-native","style","stylesheet"],"created_at":"2024-10-12T11:13:24.348Z","updated_at":"2025-10-01T07:31:42.597Z","avatar_url":"https://github.com/FiberJW.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"stylehooks artwork\" src=\"./readme-artwork.gif\"\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\" style=\"font-weight:600\"\u003e\n\n`react-native-stylehooks`\n\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  Responsive React Native [Web] styles made simple.\n\u003c/p\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n[![supports iOS](https://img.shields.io/badge/iOS-4630EB.svg?style=flat-square\u0026logo=APPLE\u0026labelColor=999999\u0026logoColor=fff)](https://github.com/expo/expo)\n[![supports Android](https://img.shields.io/badge/Android-4630EB.svg?style=flat-square\u0026logo=ANDROID\u0026labelColor=A4C639\u0026logoColor=fff)](https://github.com/expo/expo)\n[![supports web](https://img.shields.io/badge/web-4630EB.svg?style=flat-square\u0026logo=GOOGLE-CHROME\u0026labelColor=4285F4\u0026logoColor=fff)](https://github.com/expo/expo)\n\n\u003c/div\u003e\n\n## Getting Started\n\n- Run `yarn add react-native-stylehooks` in your React Native [Web] app\n- Use it similarly to the example shown below\n\n```jsx\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { View, Text } from 'react-native';\nimport { StyleSheet } from 'react-native-stylehooks';\n\nfunction App() {\n  const styles = useStyles();\n\n  return (\n    \u003cView style={styles.container}\u003e\n      \u003cText style={styles.text}\u003eHello, Stylehooks\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n}\n\nconst breakpoints = {\n  tablet: 1024,\n  mobile: 400,\n};\n\nconst useStyles = StyleSheet.create({\n  container: ({ window: { width } }) =\u003e {\n    return {\n      flex: 1,\n      justifyContent: 'center',\n      height: '100vh',\n      alignItems: 'center',\n      backgroundColor: width \u003c= breakpoints.tablet ? '#4630eb' : '#000020',\n      borderColor: width \u003c= breakpoints.mobile ? '#decd50' : '#93d9de',\n      borderWidth: 8,\n    };\n  },\n  text: _ =\u003e {\n    return { color: 'white', fontSize: 32 };\n  },\n});\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('root'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiberjw%2Freact-native-stylehooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiberjw%2Freact-native-stylehooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiberjw%2Freact-native-stylehooks/lists"}