{"id":17957630,"url":"https://github.com/evanbacon/react-native-ink","last_synced_at":"2025-03-25T02:31:49.281Z","repository":{"id":47950016,"uuid":"216099642","full_name":"EvanBacon/react-native-ink","owner":"EvanBacon","description":"React Native for CLIs","archived":false,"fork":false,"pushed_at":"2021-08-11T14:34:06.000Z","size":3782,"stargazers_count":30,"open_issues_count":25,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T07:33:10.597Z","etag":null,"topics":["expo","expo-web","ink","react-native","react-native-cli","react-native-web"],"latest_commit_sha":null,"homepage":null,"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/EvanBacon.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-10-18T20:10:17.000Z","updated_at":"2024-12-12T16:11:19.000Z","dependencies_parsed_at":"2022-08-12T15:00:22.854Z","dependency_job_id":null,"html_url":"https://github.com/EvanBacon/react-native-ink","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/EvanBacon%2Freact-native-ink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanBacon%2Freact-native-ink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanBacon%2Freact-native-ink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanBacon%2Freact-native-ink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvanBacon","download_url":"https://codeload.github.com/EvanBacon/react-native-ink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245385545,"owners_count":20606668,"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":["expo","expo-web","ink","react-native","react-native-cli","react-native-web"],"created_at":"2024-10-29T10:55:52.670Z","updated_at":"2025-03-25T02:31:48.979Z","avatar_url":"https://github.com/EvanBacon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Title --\u003e\n\u003ch1 align=\"center\"\u003e\n👋 Welcome to \u003cbr\u003e\u003ccode\u003ereact-native-ink\u003c/code\u003e\n\u003c/h1\u003e\n\n\u003c!-- Header --\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eA library for creating CLIs with agnostic primitives like View, Text, Image, TextInput, etc...\u003c/b\u003e\n    \u003cbr/\u003e\n    \u003cbr/\u003e\n  \u003ca aria-label=\"Well tested React library\" href=\"https://github.com/evanbacon/react-native-ink/actions\"\u003e\n    \u003cimg align=\"center\" alt=\"GitHub Actions status\" src=\"https://github.com/evanbacon/react-native-ink/workflows/Check%20Universal%20Module/badge.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# NOT READY YET :] \n\n\u003c!-- Body --\u003e\n\n## 🏁 Setup\n\nInstall `react-native-ink` in your project.\n\n```sh\nyarn add react-native-ink\n```\n\nAlias `react-native` to `react-native-ink`:\n\n1. `yarn add -D babel-plugin-module-resolver`\n2. Create alias:\n   `babel.config.js`\n\n   ```js\n   module.exports = {\n     // ...\n     plugins: [\n       [\n         'babel-plugin-module-resolver',\n         {\n           alias: {\n             'react-native': 'react-native-ink',\n           },\n         },\n       ],\n     ],\n   };\n   ```\n\n## ⚽️ Usage\n\n```tsx\nimport React, { useEffect, useState } from 'react';\nimport { AppRegistry, View, Text, Image, TextInput } from 'react-native';\n\nconst Counter = () =\u003e {\n  const [counter, setCounter] = useState(0);\n\n  useEffect(() =\u003e {\n    const timer = setInterval(() =\u003e {\n      setCounter(prevCounter =\u003e prevCounter + 1);\n    });\n\n    return () =\u003e {\n      clearInterval(timer);\n    };\n  });\n\n  return (\n    \u003cView style={{ padding: 1 }}\u003e\n      \u003cText style={{ color: 'green' }}\u003e{counter} tests passed\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n};\n\nAppRegistry.registerComponent('main', () =\u003e Counter);\n```\n\n## License\n\nThe Expo source code is made available under the [MIT license](LICENSE). Some of the dependencies are licensed differently, with the BSD license, for example.\n\n\u003c!-- Footer --\u003e\n\n---\n\n\u003cp\u003e\n    \u003ca aria-label=\"sponsored by expo\" href=\"http://expo.io\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Sponsored_by-Expo-4630EB.svg?style=for-the-badge\u0026logo=EXPO\u0026labelColor=000\u0026logoColor=fff\" target=\"_blank\" /\u003e\n    \u003c/a\u003e\n    \u003ca aria-label=\"React Native for CLIs is free to use\" href=\"/LICENSE\" target=\"_blank\"\u003e\n        \u003cimg align=\"right\" alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-success.svg?style=for-the-badge\u0026color=33CC12\" target=\"_blank\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanbacon%2Freact-native-ink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanbacon%2Freact-native-ink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanbacon%2Freact-native-ink/lists"}