{"id":25932637,"url":"https://github.com/derekrsargent/react-native-jsi-example","last_synced_at":"2025-08-02T07:37:13.766Z","repository":{"id":49979045,"uuid":"518502209","full_name":"derekrsargent/react-native-jsi-example","owner":"derekrsargent","description":"Using Obj-c over JSI","archived":false,"fork":false,"pushed_at":"2022-11-06T12:14:04.000Z","size":336,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T00:38:17.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derekrsargent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-27T14:56:56.000Z","updated_at":"2023-07-12T16:09:45.000Z","dependencies_parsed_at":"2023-01-21T06:18:38.066Z","dependency_job_id":null,"html_url":"https://github.com/derekrsargent/react-native-jsi-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/derekrsargent/react-native-jsi-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekrsargent%2Freact-native-jsi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekrsargent%2Freact-native-jsi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekrsargent%2Freact-native-jsi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekrsargent%2Freact-native-jsi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derekrsargent","download_url":"https://codeload.github.com/derekrsargent/react-native-jsi-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekrsargent%2Freact-native-jsi-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348689,"owners_count":24236302,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-03-04T00:38:37.551Z","updated_at":"2025-08-02T07:37:13.733Z","avatar_url":"https://github.com/derekrsargent.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native JSI example with Obj-C\n\nUsing JSI to bind methods to the JS runtime from a bare react native project.  \n\n## Build Requirements and Installation\n\nFollow the typical React Native environment setup and build requirements as per https://reactnative.dev/docs/environment-setup\n\n## Project Setups\n\nSee [Tutorial by Oscar Franco](https://ospfranco.com/post/2021/02/24/how-to-create-a-javascript-jsi-module/) for additional information.    \n\nThe steps followed to create this project:\n- Create an empty react native project using `npx react-native init ProjectName`. I wanted to use a bare project instead of using `react-native-turbo-starter`, `react-native-builder-bob` or similiar. \n- Add `react-native-jsi-example.h`, `react-native-jsi-example.cpp`, `JSIExample.h`, `JSIExample.mm` files in the ios folder using Xcode. \n- Add `JSISampleObject.h`, `JSISampleObject.m` files in the ios folder using Xcode. This is the Objective-C method file (.m instead of .mm since it is pure Objective-C).\n- Update `App.js` to invoke the global method and do a console log for this example.\n- If JSI binding is unsuccessful try cleaning the build folder using Xcode.\n\n## Other Notes\n\n- The setBridge method is called automatically during app initialization. \n\n## Run Project\n\nOpen the `ReactNativeJsi2.xcworkspace` in the `ios` folder using Xcode and press play; or run `yarn ios` in the project root directory. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekrsargent%2Freact-native-jsi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderekrsargent%2Freact-native-jsi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekrsargent%2Freact-native-jsi-example/lists"}