{"id":15633081,"url":"https://github.com/ammarahm-ed/react-native-jsi-template","last_synced_at":"2025-09-12T09:31:24.333Z","repository":{"id":43561549,"uuid":"379632588","full_name":"ammarahm-ed/react-native-jsi-template","owner":"ammarahm-ed","description":"Template library and blog that explain how JSI modules are built from scratch in React Native","archived":false,"fork":false,"pushed_at":"2022-03-29T19:57:17.000Z","size":463,"stargazers_count":164,"open_issues_count":8,"forks_count":24,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-01T12:53:08.691Z","etag":null,"topics":["android","ios","jsi-modules","native-modules","react-native","reactnative"],"latest_commit_sha":null,"homepage":"https://blog.notesnook.com/getting-started-react-native-jsi/","language":"C++","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/ammarahm-ed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-23T14:34:43.000Z","updated_at":"2024-12-27T21:06:43.000Z","dependencies_parsed_at":"2022-08-12T10:41:52.113Z","dependency_job_id":null,"html_url":"https://github.com/ammarahm-ed/react-native-jsi-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarahm-ed%2Freact-native-jsi-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarahm-ed%2Freact-native-jsi-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarahm-ed%2Freact-native-jsi-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarahm-ed%2Freact-native-jsi-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammarahm-ed","download_url":"https://codeload.github.com/ammarahm-ed/react-native-jsi-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232721427,"owners_count":18566394,"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":["android","ios","jsi-modules","native-modules","react-native","reactnative"],"created_at":"2024-10-03T10:46:53.692Z","updated_at":"2025-01-06T12:29:45.393Z","avatar_url":"https://github.com/ammarahm-ed.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-jsi-template\n\nThis is an example library that explains how anyone can build jsi modules from scratch in React Native. This code is written as a support project for my [blog](https://blog.notesnook.com/getting-started-react-native-jsi/).\n\n## Installation\n\n```sh\nnpm install react-native-simple-jsi\n```\nFor iOS also run `pod install` in `/ios` folder.\n\n\n## Prerequisites\nYou must have Android NDK and CMake installed on android to build the library.\n\n## Methods\nThe following methods are implemented.\n\n### Platfom agnostic\nThe relevant code is present in `cpp/example.cpp` file.\n```ts\n    helloWorld():string;\n\n    multiplyWithCallback(x:number,y:number,callback:(z:number) =\u003e void):void\n    \n    multiply(x:number,y:number):number\n```\n\n### Platform specific\nThe relevant code on android is in `android/cpp-adapter.cpp` and `ios/SimpleJsi.mm` on iOS.\n```ts\n    getDeviceName():string\n    \n    setItem(key:string,value:string):boolean\n\n    getItem(key:string):string\n```\n\n## Basic usage example\n```tsx\nimport simpleJsiModule from \"react-native-jsi-template\";\n\nsimpleJsiModule.helloWorld() // returns helloworld.\n```\nRun the example app for more.\n\n\n## Thanks to these libraries \u0026 their authors:\nThe initial work done by authors of the following libraries has helped a lot in writing the blog and keeping this repo updated.\n\n- [react-native-mmkv](https://github.com/mrousavy/react-native-mmkv/)\n- [react-native-reanimated](https://github.com/software-mansion/react-native-reanimated/)\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarahm-ed%2Freact-native-jsi-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammarahm-ed%2Freact-native-jsi-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarahm-ed%2Freact-native-jsi-template/lists"}