{"repo":"buddyboss/buddyboss-app-custom-code-template","free":true,"listed":false,"github":"https://github.com/buddyboss/buddyboss-app-custom-code-template","clone":"git clone https://github.com/buddyboss/buddyboss-app-custom-code-template.git","description":"A starter template for doing custom development on BuddyBoss App.","language":"Java","stars":13,"topics":[],"license":null,"category":"mobile-apps","readme_excerpt":"BuddyBoss App — Custom Code Template This repo is a template for extending the BuddyBoss App with your own custom code and native modules. Clone it (or copy the files) and connect it to your app as a starting point. See the developer documentation for how to link this package into your app. Requires React Native 0.85.1+ with the New Architecture enabled. --- Project layout --- Adding a new native method Signatures are enforced by codegen across all three files — if they don't match, the build fails. ### ⚠️ A FULL APP REBUILD IS REQUIRED BEFORE USING A NATIVE METHOD After adding or modifying a native method, a full rebuild is required. Metro / Fast Refresh will not pick up native changes — failing to rebuild will cause the app to crash at runtime when the native code is called. Sync vs. async: sync methods return a value directly and block the JS thread until they return, so only use them for cheap, non-I/O work (simple math, reading a constant, etc.). For anything that does network, disk, or heavy compute, use Promise so the JS thread stays free. Both variants are shown below. Worked example (synchronous): add multiply(a, b) that returns a b directly. 1. Declare the method in the TS spec Edit src/NativeBuddybossCustomCode.ts : No Promise on the return type → sync method. The value is returned directly; no Promise arg is appended by codegen. 2. Implement it on Android Edit android/src/main/java/com/buddybosscustomcode/BuddybossCustomCodeModule.java : Codegen maps JS number → J","default_branch":null,"files":null,"tree":[],"storefront":"/r/buddyboss","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/buddyboss/buddyboss-app-custom-code-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}