Skip to content

Instantly share code, notes, and snippets.

View RidaRidss's full-sized avatar
🎯
Focusing

Rida Sarwar RidaRidss

🎯
Focusing
View GitHub Profile

android/app/build.gradle

--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -80,6 +80,8 @@ import com.android.build.OutputFile
 
 project.ext.react = [
     enableHermes: true,  // clean and rebuild if changing
+    entryFile: "index.js",
+    bundleAssetName: "app.bundle",
@RidaRidss
RidaRidss / createCrudHooks.js
Created June 22, 2021 07:53 — forked from tannerlinsley/createCrudHooks.js
A naive, but efficient starter to generate crud hooks for React Query
export default function createCrudHooks({
baseKey,
indexFn,
singleFn,
createFn,
updateFn,
deleteFn,
}) {
const useIndex = (config) => useQuery([baseKey], indexFn, config)
const useSingle = (id, config) =>