{"id":19883808,"url":"https://github.com/hyperhype/react-native-hyperscript","last_synced_at":"2025-05-02T15:30:24.533Z","repository":{"id":57337488,"uuid":"45450214","full_name":"hyperhype/react-native-hyperscript","owner":"hyperhype","description":":beer: hyperscript syntax for React Native","archived":false,"fork":false,"pushed_at":"2015-11-03T07:49:59.000Z","size":124,"stargazers_count":20,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T01:56:37.697Z","etag":null,"topics":["hyperscript","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hyperhype.png","metadata":{"files":{"readme":"readme.markdown","changelog":"history.markdown","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":"2015-11-03T07:48:24.000Z","updated_at":"2025-03-30T00:42:16.000Z","dependencies_parsed_at":"2022-09-12T09:41:13.994Z","dependency_job_id":null,"html_url":"https://github.com/hyperhype/react-native-hyperscript","commit_stats":null,"previous_names":["reqshark/react-native-hyperscript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperhype%2Freact-native-hyperscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperhype%2Freact-native-hyperscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperhype%2Freact-native-hyperscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperhype%2Freact-native-hyperscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperhype","download_url":"https://codeload.github.com/hyperhype/react-native-hyperscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252062662,"owners_count":21688579,"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":["hyperscript","react-native"],"created_at":"2024-11-12T17:23:16.539Z","updated_at":"2025-05-02T15:30:24.165Z","avatar_url":"https://github.com/hyperhype.png","language":"JavaScript","readme":"# react-native-hyperscript\n\n# a fork of [react-hyperscript](https://github.com/mlmorg/react-hyperscript) [![Build Status](https://travis-ci.org/mlmorg/react-hyperscript.png?branch=master)](https://travis-ci.org/mlmorg/react-hyperscript)\n\nHyperscript syntax for ~~React.js~~ React Native markup.\n\n## Usage\n\n```js\nvar h = require('react-native-hyperscript');\nvar React = require('react-native');\n\nvar styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n  },\n  welcome: {\n    fontSize: 20,\n    textAlign: 'center',\n    margin: 10,\n  },\n});\n\nvar AwesomeProject = React.createClass({\n  render: function() {\n    return h(View, { style: styles.container }, [\n      h(Text, { style: styles.welcome }, 'hello from React Native!')\n    ])\n  }\n});\n```\n\n## Documentation\n\n#### `h(component, properties, children)`\n\nReturns a React Native element.\n\n- **component** `Object` - A React-native component.\n- **properties** `Object` *(optional)* - An object containing the properties\nyou'd like to set on the element.\n- **children** `Array|String` *(optional)* - An array of `h()` children or\na string. This will create child elements or text, respectively.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperhype%2Freact-native-hyperscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperhype%2Freact-native-hyperscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperhype%2Freact-native-hyperscript/lists"}