@rownd/react-native 3.4.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +4 -4
- package/android/gradle.properties +5 -5
- package/android/src/main/java/com/reactnativerowndplugin/RowndPluginModule.kt +2 -5
- package/android/src/main/java/com/reactnativerowndplugin/RowndPluginPackage.kt +0 -2
- package/expo/plugin.js +8 -8
- package/ios/RowndPlugin.swift +21 -9
- package/lib/commonjs/components/GlobalContext.js +4 -5
- package/lib/commonjs/components/GlobalContext.js.map +1 -1
- package/lib/commonjs/components/GlobalContext.web.js +1 -1
- package/lib/commonjs/components/GlobalContext.web.js.map +1 -1
- package/lib/commonjs/components/RequireSignIn.js +2 -3
- package/lib/commonjs/components/RequireSignIn.js.map +1 -1
- package/lib/commonjs/components/SignedIn.js +1 -1
- package/lib/commonjs/components/SignedIn.js.map +1 -1
- package/lib/commonjs/components/SignedOut.js +1 -1
- package/lib/commonjs/components/SignedOut.js.map +1 -1
- package/lib/commonjs/constants/action.js +3 -3
- package/lib/commonjs/constants/action.js.map +1 -1
- package/lib/commonjs/hooks/rownd.js.map +1 -1
- package/lib/commonjs/hooks/rownd.web.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/reducer/rowndReducer.js.map +1 -1
- package/lib/commonjs/utils/nativeModule.js.map +1 -1
- package/lib/module/components/GlobalContext.js +4 -4
- package/lib/module/components/GlobalContext.js.map +1 -1
- package/lib/module/components/GlobalContext.web.js.map +1 -1
- package/lib/module/components/RequireSignIn.js +1 -1
- package/lib/module/components/RequireSignIn.js.map +1 -1
- package/lib/module/components/SignedIn.js.map +1 -1
- package/lib/module/components/SignedOut.js.map +1 -1
- package/lib/module/constants/action.js +3 -3
- package/lib/module/constants/action.js.map +1 -1
- package/lib/module/hooks/rownd.js.map +1 -1
- package/lib/module/hooks/rownd.web.js.map +1 -1
- package/lib/module/reducer/rowndReducer.js.map +1 -1
- package/lib/module/utils/nativeModule.js.map +1 -1
- package/package.json +2 -9
- package/rownd-react-native.podspec +13 -12
- package/src/components/GlobalContext.tsx +5 -7
- package/src/components/GlobalContext.web.tsx +1 -4
- package/src/components/RequireSignIn.tsx +1 -1
- package/src/components/SignedIn.tsx +1 -1
- package/src/components/SignedOut.tsx +2 -2
- package/src/hooks/rownd.ts +14 -5
- package/src/hooks/rownd.web.ts +2 -2
- package/src/reducer/rowndReducer.ts +2 -2
- package/src/utils/nativeModule.ts +1 -1
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.4/gc.properties +0 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/ios/ReactNative.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/ReactNative.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/ReactNative.xcodeproj/project.xcworkspace/xcuserdata/mhamann.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/ReactNative.xcodeproj/xcuserdata/mhamann.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/lib/package.json +0 -173
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["requestSignIn","signOut","manageAccount","getAccessToken","getFirebaseIdToken","setUserDataValue","setUserData","useRowndContext","useRownd","state","access_token","auth","firebase","getIdToken","is_authenticated","is_initializing","app_id","user","data","setValue","set","isLoading"],"sources":["rownd.ts"],"sourcesContent":["import {\n requestSignIn,\n signOut,\n manageAccount,\n getAccessToken,\n getFirebaseIdToken,\n setUserDataValue,\n setUserData,\n} from '../utils/nativeModule';\nimport { useRowndContext } from '../components/GlobalContext';\n\nexport type TRowndContext = {\n access_token: string | null;\n auth: AuthContext;\n is_authenticated: boolean;\n is_initializing: boolean;\n firebase: {\n getIdToken: () => Promise<string>;\n }
|
|
1
|
+
{"version":3,"names":["requestSignIn","signOut","manageAccount","getAccessToken","getFirebaseIdToken","setUserDataValue","setUserData","useRowndContext","useRownd","state","access_token","auth","firebase","getIdToken","is_authenticated","is_initializing","app_id","user","data","setValue","set","isLoading"],"sources":["rownd.ts"],"sourcesContent":["import {\n requestSignIn,\n signOut,\n manageAccount,\n getAccessToken,\n getFirebaseIdToken,\n setUserDataValue,\n setUserData,\n} from '../utils/nativeModule';\nimport { useRowndContext } from '../components/GlobalContext';\n\nexport type TRowndContext = {\n access_token: string | null;\n auth: AuthContext;\n is_authenticated: boolean;\n is_initializing: boolean;\n firebase: {\n getIdToken: () => Promise<string>;\n };\n getAccessToken: (token?: string) => Promise<string>;\n manageAccount: () => void;\n requestSignIn: (e?: RequestSignIn) => void;\n signOut: () => void;\n user: UserContext;\n};\n\ntype UserContext = {\n data: {\n user_id?: string;\n email?: string | null;\n phone?: string | null;\n [key: string]: any;\n };\n set: (data: Record<string, any>) => void;\n setValue: (key: string, value: any) => void;\n isLoading: boolean;\n};\n\ntype AuthContext = {\n access_token: string | null;\n app_id: string | null;\n is_verified_user?: boolean;\n};\n\nexport type RequestSignInMethods =\n | 'google'\n | 'apple'\n | 'default'\n | 'guest'\n | 'passkey';\nexport type RequestSignInIntent = 'sign_in' | 'sign_up';\nexport type RequestSignIn = {\n method?: RequestSignInMethods;\n postSignInRedirect?: string;\n intent?: RequestSignInIntent;\n};\n\nexport function useRownd(): TRowndContext {\n const { state } = useRowndContext();\n\n return {\n access_token: state.auth.access_token,\n auth: state.auth,\n getAccessToken,\n firebase: {\n getIdToken: getFirebaseIdToken,\n },\n is_authenticated: !!state.auth.access_token,\n is_initializing: !state.auth.app_id,\n manageAccount,\n requestSignIn,\n signOut,\n user: {\n data: state.user.data,\n setValue: setUserDataValue,\n set: setUserData,\n isLoading: state.user.isLoading,\n },\n };\n}\n"],"mappings":"AAAA,SACEA,aAAa,EACbC,OAAO,EACPC,aAAa,EACbC,cAAc,EACdC,kBAAkB,EAClBC,gBAAgB,EAChBC,WAAW,QACN,uBAAuB;AAC9B,SAASC,eAAe,QAAQ,6BAA6B;AAgD7D,OAAO,SAASC,QAAQA,CAAA,EAAkB;EACxC,MAAM;IAAEC;EAAM,CAAC,GAAGF,eAAe,CAAC,CAAC;EAEnC,OAAO;IACLG,YAAY,EAAED,KAAK,CAACE,IAAI,CAACD,YAAY;IACrCC,IAAI,EAAEF,KAAK,CAACE,IAAI;IAChBR,cAAc;IACdS,QAAQ,EAAE;MACRC,UAAU,EAAET;IACd,CAAC;IACDU,gBAAgB,EAAE,CAAC,CAACL,KAAK,CAACE,IAAI,CAACD,YAAY;IAC3CK,eAAe,EAAE,CAACN,KAAK,CAACE,IAAI,CAACK,MAAM;IACnCd,aAAa;IACbF,aAAa;IACbC,OAAO;IACPgB,IAAI,EAAE;MACJC,IAAI,EAAET,KAAK,CAACQ,IAAI,CAACC,IAAI;MACrBC,QAAQ,EAAEd,gBAAgB;MAC1Be,GAAG,EAAEd,WAAW;MAChBe,SAAS,EAAEZ,KAAK,CAACQ,IAAI,CAACI;IACxB;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRownd","useReactRownd","requestSignIn","signOut","getAccessToken","is_authenticated","is_initializing","auth","access_token","user","manageAccount","setUser","setUserValue","app_id","is_verified_user","opts","post_login_redirect","postSignInRedirect","data","setValue","set","isLoading"],"sources":["rownd.web.ts"],"sourcesContent":["import { useRownd as useReactRownd } from '@rownd/react';\nimport type { TRowndContext } from './rownd';\n\nexport function useRownd(): TRowndContext {\n const {\n requestSignIn,\n signOut,\n getAccessToken,\n is_authenticated,\n is_initializing,\n auth,\n access_token,\n user,\n manageAccount,\n setUser,\n setUserValue
|
|
1
|
+
{"version":3,"names":["useRownd","useReactRownd","requestSignIn","signOut","getAccessToken","is_authenticated","is_initializing","auth","access_token","user","manageAccount","setUser","setUserValue","app_id","is_verified_user","opts","post_login_redirect","postSignInRedirect","data","setValue","set","isLoading"],"sources":["rownd.web.ts"],"sourcesContent":["import { useRownd as useReactRownd } from '@rownd/react';\nimport type { TRowndContext } from './rownd';\n\nexport function useRownd(): TRowndContext {\n const {\n requestSignIn,\n signOut,\n getAccessToken,\n is_authenticated,\n is_initializing,\n auth,\n access_token,\n user,\n manageAccount,\n setUser,\n setUserValue,\n } = useReactRownd();\n\n return {\n access_token,\n auth: {\n access_token,\n app_id: auth.app_id || null,\n is_verified_user: auth.is_verified_user,\n },\n // @ts-ignore\n getAccessToken,\n is_authenticated,\n is_initializing,\n manageAccount,\n requestSignIn: (opts) =>\n requestSignIn({ ...opts, post_login_redirect: opts?.postSignInRedirect }),\n signOut,\n user: {\n data: user.data,\n setValue: setUserValue,\n set: setUser,\n isLoading: false, // Waiting for react sdk update\n },\n };\n}\n"],"mappings":"AAAA,SAASA,QAAQ,IAAIC,aAAa,QAAQ,cAAc;AAGxD,OAAO,SAASD,QAAQA,CAAA,EAAkB;EACxC,MAAM;IACJE,aAAa;IACbC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,eAAe;IACfC,IAAI;IACJC,YAAY;IACZC,IAAI;IACJC,aAAa;IACbC,OAAO;IACPC;EACF,CAAC,GAAGX,aAAa,CAAC,CAAC;EAEnB,OAAO;IACLO,YAAY;IACZD,IAAI,EAAE;MACJC,YAAY;MACZK,MAAM,EAAEN,IAAI,CAACM,MAAM,IAAI,IAAI;MAC3BC,gBAAgB,EAAEP,IAAI,CAACO;IACzB,CAAC;IACD;IACAV,cAAc;IACdC,gBAAgB;IAChBC,eAAe;IACfI,aAAa;IACbR,aAAa,EAAGa,IAAI,IAClBb,aAAa,CAAC;MAAE,GAAGa,IAAI;MAAEC,mBAAmB,EAAED,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEE;IAAmB,CAAC,CAAC;IAC3Ed,OAAO;IACPM,IAAI,EAAE;MACJS,IAAI,EAAET,IAAI,CAACS,IAAI;MACfC,QAAQ,EAAEP,YAAY;MACtBQ,GAAG,EAAET,OAAO;MACZU,SAAS,EAAE,KAAK,CAAE;IACpB;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ActionType","initialRowndState","user","data","email","isLoading","auth","access_token","refresh_token","app_id","app","schema","config","rowndReducer","state","action","_action$payload","_action$payload2","_action$payload3","_action$payload4","_action$payload5","_action$payload6","_action$payload$appCo","newState","type","UPDATE_STATE","payload","Boolean","appConfig","id"],"sources":["rowndReducer.ts"],"sourcesContent":["import type { GlobalState } from '../components/GlobalContext.types';\nimport { ActionType, TAction } from '../constants/action';\n\nexport const initialRowndState: GlobalState = {\n // is_initializing: false,\n user: {\n data: {\n email: null,\n },\n isLoading: false
|
|
1
|
+
{"version":3,"names":["ActionType","initialRowndState","user","data","email","isLoading","auth","access_token","refresh_token","app_id","app","schema","config","rowndReducer","state","action","_action$payload","_action$payload2","_action$payload3","_action$payload4","_action$payload5","_action$payload6","_action$payload$appCo","newState","type","UPDATE_STATE","payload","Boolean","appConfig","id"],"sources":["rowndReducer.ts"],"sourcesContent":["import type { GlobalState } from '../components/GlobalContext.types';\nimport { ActionType, TAction } from '../constants/action';\n\nexport const initialRowndState: GlobalState = {\n // is_initializing: false,\n user: {\n data: {\n email: null,\n },\n isLoading: false,\n // meta: {}\n },\n auth: {\n access_token: null,\n refresh_token: null,\n app_id: null,\n },\n app: {\n schema: null,\n config: null,\n },\n // is_saving_user_data: false,\n // config,\n};\n\nexport function rowndReducer(state: GlobalState, action: TAction): GlobalState {\n let newState: GlobalState;\n\n switch (action.type) {\n case ActionType.UPDATE_STATE:\n newState = {\n user: {\n data: {\n ...action.payload?.user?.data,\n email: action.payload?.user?.data?.email,\n },\n isLoading: Boolean(action.payload?.user?.isLoading),\n // meta: {}\n },\n auth: {\n access_token: action.payload?.auth?.access_token,\n refresh_token: action.payload?.auth?.refresh_token,\n app_id: action.payload?.appConfig?.id || null,\n },\n app: {\n schema: action.payload.appConfig?.schema,\n config: null,\n },\n // is_saving_user_data: false,\n // config\n };\n return newState;\n default:\n newState = state;\n return newState;\n }\n}\n"],"mappings":"AACA,SAASA,UAAU,QAAiB,qBAAqB;AAEzD,OAAO,MAAMC,iBAA8B,GAAG;EAC5C;EACAC,IAAI,EAAE;IACJC,IAAI,EAAE;MACJC,KAAK,EAAE;IACT,CAAC;IACDC,SAAS,EAAE;IACX;EACF,CAAC;EACDC,IAAI,EAAE;IACJC,YAAY,EAAE,IAAI;IAClBC,aAAa,EAAE,IAAI;IACnBC,MAAM,EAAE;EACV,CAAC;EACDC,GAAG,EAAE;IACHC,MAAM,EAAE,IAAI;IACZC,MAAM,EAAE;EACV;EACA;EACA;AACF,CAAC;AAED,OAAO,SAASC,YAAYA,CAACC,KAAkB,EAAEC,MAAe,EAAe;EAAA,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,qBAAA;EAC7E,IAAIC,QAAqB;EAEzB,QAAQR,MAAM,CAACS,IAAI;IACjB,KAAKxB,UAAU,CAACyB,YAAY;MAC1BF,QAAQ,GAAG;QACTrB,IAAI,EAAE;UACJC,IAAI,EAAE;YACJ,KAAAa,eAAA,GAAGD,MAAM,CAACW,OAAO,cAAAV,eAAA,gBAAAA,eAAA,GAAdA,eAAA,CAAgBd,IAAI,cAAAc,eAAA,uBAApBA,eAAA,CAAsBb,IAAI;YAC7BC,KAAK,GAAAa,gBAAA,GAAEF,MAAM,CAACW,OAAO,cAAAT,gBAAA,gBAAAA,gBAAA,GAAdA,gBAAA,CAAgBf,IAAI,cAAAe,gBAAA,gBAAAA,gBAAA,GAApBA,gBAAA,CAAsBd,IAAI,cAAAc,gBAAA,uBAA1BA,gBAAA,CAA4Bb;UACrC,CAAC;UACDC,SAAS,EAAEsB,OAAO,EAAAT,gBAAA,GAACH,MAAM,CAACW,OAAO,cAAAR,gBAAA,gBAAAA,gBAAA,GAAdA,gBAAA,CAAgBhB,IAAI,cAAAgB,gBAAA,uBAApBA,gBAAA,CAAsBb,SAAS;UAClD;QACF,CAAC;QACDC,IAAI,EAAE;UACJC,YAAY,GAAAY,gBAAA,GAAEJ,MAAM,CAACW,OAAO,cAAAP,gBAAA,gBAAAA,gBAAA,GAAdA,gBAAA,CAAgBb,IAAI,cAAAa,gBAAA,uBAApBA,gBAAA,CAAsBZ,YAAY;UAChDC,aAAa,GAAAY,gBAAA,GAAEL,MAAM,CAACW,OAAO,cAAAN,gBAAA,gBAAAA,gBAAA,GAAdA,gBAAA,CAAgBd,IAAI,cAAAc,gBAAA,uBAApBA,gBAAA,CAAsBZ,aAAa;UAClDC,MAAM,EAAE,EAAAY,gBAAA,GAAAN,MAAM,CAACW,OAAO,cAAAL,gBAAA,gBAAAA,gBAAA,GAAdA,gBAAA,CAAgBO,SAAS,cAAAP,gBAAA,uBAAzBA,gBAAA,CAA2BQ,EAAE,KAAI;QAC3C,CAAC;QACDnB,GAAG,EAAE;UACHC,MAAM,GAAAW,qBAAA,GAAEP,MAAM,CAACW,OAAO,CAACE,SAAS,cAAAN,qBAAA,uBAAxBA,qBAAA,CAA0BX,MAAM;UACxCC,MAAM,EAAE;QACV;QACA;QACA;MACF,CAAC;MACD,OAAOW,QAAQ;IACjB;MACEA,QAAQ,GAAGT,KAAK;MAChB,OAAOS,QAAQ;EACnB;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Rownd","RowndPlugin","Proxy","get","Error","IOSRowndEventEmitter","OS","RowndPluginEventEmitter","configure","config","customizations","customizationConfig","requestSignIn","method","postSignInRedirect","intent","signOut","manageAccount","getAccessToken","token","getFirebaseIdToken","setUserDataValue","key","value","setUserData","data","handleSignInLink","url"],"sources":["nativeModule.ts"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\nimport type { RequestSignIn } from 'src/hooks/rownd';\nimport type { Customizations, IConfig } from './config';\n\nexport const LINKING_ERROR =\n `The package '@rownd/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nexport const Rownd = NativeModules.RowndPlugin\n ? NativeModules.RowndPlugin\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport const IOSRowndEventEmitter =\n Platform.OS !== 'ios'\n ? null\n : NativeModules.RowndPluginEventEmitter\n ? NativeModules.RowndPluginEventEmitter\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport function configure(config: IConfig): Promise<string> {\n return Rownd.configure(config);\n}\n\nexport function customizations(customizationConfig: Customizations) {\n return Rownd.customizations(customizationConfig);\n}\n\nexport function requestSignIn(config?: RequestSignIn) {\n if (!config) {\n return Rownd.requestSignIn({ method: 'default' });\n }\n return Rownd.requestSignIn({\n method: config?.method,\n postSignInRedirect: config?.postSignInRedirect,\n intent: config?.intent
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Rownd","RowndPlugin","Proxy","get","Error","IOSRowndEventEmitter","OS","RowndPluginEventEmitter","configure","config","customizations","customizationConfig","requestSignIn","method","postSignInRedirect","intent","signOut","manageAccount","getAccessToken","token","getFirebaseIdToken","setUserDataValue","key","value","setUserData","data","handleSignInLink","url"],"sources":["nativeModule.ts"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\nimport type { RequestSignIn } from 'src/hooks/rownd';\nimport type { Customizations, IConfig } from './config';\n\nexport const LINKING_ERROR =\n `The package '@rownd/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nexport const Rownd = NativeModules.RowndPlugin\n ? NativeModules.RowndPlugin\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport const IOSRowndEventEmitter =\n Platform.OS !== 'ios'\n ? null\n : NativeModules.RowndPluginEventEmitter\n ? NativeModules.RowndPluginEventEmitter\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport function configure(config: IConfig): Promise<string> {\n return Rownd.configure(config);\n}\n\nexport function customizations(customizationConfig: Customizations) {\n return Rownd.customizations(customizationConfig);\n}\n\nexport function requestSignIn(config?: RequestSignIn) {\n if (!config) {\n return Rownd.requestSignIn({ method: 'default' });\n }\n return Rownd.requestSignIn({\n method: config?.method,\n postSignInRedirect: config?.postSignInRedirect,\n intent: config?.intent,\n });\n}\n\nexport function signOut() {\n return Rownd.signOut();\n}\n\nexport function manageAccount() {\n return Rownd.manageAccount();\n}\n\nexport function getAccessToken(token?: string): Promise<string> {\n return Rownd.getAccessToken(token || null);\n}\n\nexport function getFirebaseIdToken(): Promise<string> {\n return Rownd.getFirebaseIdToken();\n}\n\nexport function setUserDataValue(key: string, value: any) {\n return Rownd.setUserDataValue(\n key,\n Platform.OS === 'android' ? { value } : value\n );\n}\n\nexport function setUserData(data: Record<string, any>) {\n return Rownd.setUserData(data);\n}\n\nexport function handleSignInLink(url: string) {\n return Rownd.handleSignInLink(url);\n}\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAItD,OAAO,MAAMC,aAAa,GACxB,8EAA8E,GAC9ED,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAE/C,OAAO,MAAMC,KAAK,GAAGN,aAAa,CAACO,WAAW,GAC1CP,aAAa,CAACO,WAAW,GACzB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,OAAO,MAAMS,oBAAoB,GAC/BV,QAAQ,CAACW,EAAE,KAAK,KAAK,GACjB,IAAI,GACJZ,aAAa,CAACa,uBAAuB,GACrCb,aAAa,CAACa,uBAAuB,GACrC,IAAIL,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEP,OAAO,SAASY,SAASA,CAACC,MAAe,EAAmB;EAC1D,OAAOT,KAAK,CAACQ,SAAS,CAACC,MAAM,CAAC;AAChC;AAEA,OAAO,SAASC,cAAcA,CAACC,mBAAmC,EAAE;EAClE,OAAOX,KAAK,CAACU,cAAc,CAACC,mBAAmB,CAAC;AAClD;AAEA,OAAO,SAASC,aAAaA,CAACH,MAAsB,EAAE;EACpD,IAAI,CAACA,MAAM,EAAE;IACX,OAAOT,KAAK,CAACY,aAAa,CAAC;MAAEC,MAAM,EAAE;IAAU,CAAC,CAAC;EACnD;EACA,OAAOb,KAAK,CAACY,aAAa,CAAC;IACzBC,MAAM,EAAEJ,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEI,MAAM;IACtBC,kBAAkB,EAAEL,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEK,kBAAkB;IAC9CC,MAAM,EAAEN,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEM;EAClB,CAAC,CAAC;AACJ;AAEA,OAAO,SAASC,OAAOA,CAAA,EAAG;EACxB,OAAOhB,KAAK,CAACgB,OAAO,CAAC,CAAC;AACxB;AAEA,OAAO,SAASC,aAAaA,CAAA,EAAG;EAC9B,OAAOjB,KAAK,CAACiB,aAAa,CAAC,CAAC;AAC9B;AAEA,OAAO,SAASC,cAAcA,CAACC,KAAc,EAAmB;EAC9D,OAAOnB,KAAK,CAACkB,cAAc,CAACC,KAAK,IAAI,IAAI,CAAC;AAC5C;AAEA,OAAO,SAASC,kBAAkBA,CAAA,EAAoB;EACpD,OAAOpB,KAAK,CAACoB,kBAAkB,CAAC,CAAC;AACnC;AAEA,OAAO,SAASC,gBAAgBA,CAACC,GAAW,EAAEC,KAAU,EAAE;EACxD,OAAOvB,KAAK,CAACqB,gBAAgB,CAC3BC,GAAG,EACH3B,QAAQ,CAACW,EAAE,KAAK,SAAS,GAAG;IAAEiB;EAAM,CAAC,GAAGA,KAC1C,CAAC;AACH;AAEA,OAAO,SAASC,WAAWA,CAACC,IAAyB,EAAE;EACrD,OAAOzB,KAAK,CAACwB,WAAW,CAACC,IAAI,CAAC;AAChC;AAEA,OAAO,SAASC,gBAAgBA,CAACC,GAAW,EAAE;EAC5C,OAAO3B,KAAK,CAAC0B,gBAAgB,CAACC,GAAG,CAAC;AACpC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rownd/react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "test",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"eslint": "^8.4.1",
|
|
62
62
|
"eslint-config-prettier": "^8.5.0",
|
|
63
63
|
"eslint-plugin-prettier": "^4.0.0",
|
|
64
|
-
"expo": "
|
|
64
|
+
"expo": "~52.0.0",
|
|
65
65
|
"jest": "^28.1.1",
|
|
66
66
|
"pod-install": "^0.1.0",
|
|
67
67
|
"prettier": "^2.0.5",
|
|
@@ -78,13 +78,6 @@
|
|
|
78
78
|
"react": "*",
|
|
79
79
|
"react-native": "*"
|
|
80
80
|
},
|
|
81
|
-
"jest": {
|
|
82
|
-
"preset": "react-native",
|
|
83
|
-
"modulePathIgnorePatterns": [
|
|
84
|
-
"<rootDir>/example/node_modules",
|
|
85
|
-
"<rootDir>/lib/"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
81
|
"commitlint": {
|
|
89
82
|
"extends": [
|
|
90
83
|
"@commitlint/config-conventional"
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
|
+
unless defined?(install_modules_dependencies)
|
|
4
|
+
absolute_react_native_path = File.dirname(`node --print "require.resolve('react-native/package.json')"`)
|
|
5
|
+
require File.join(absolute_react_native_path, "scripts/react_native_pods")
|
|
6
|
+
end
|
|
7
|
+
|
|
3
8
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
9
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
10
|
|
|
@@ -17,21 +22,17 @@ Pod::Spec.new do |s|
|
|
|
17
22
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
23
|
|
|
19
24
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "Rownd", "~> 3.14.
|
|
21
|
-
s.dependency "lottie-ios", "~> 4.
|
|
25
|
+
s.dependency "Rownd", "~> 3.14.6"
|
|
26
|
+
s.dependency "lottie-ios", "~> 4.5.0"
|
|
22
27
|
|
|
23
|
-
#
|
|
28
|
+
# Use install_modules_dependencies to properly handle New Architecture dependencies
|
|
29
|
+
# See: https://github.com/react-native-community/discussions-and-proposals/discussions/912
|
|
24
30
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
25
31
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
26
|
-
s.pod_target_xcconfig
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
s.pod_target_xcconfig = {
|
|
33
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
34
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
29
35
|
}
|
|
30
|
-
|
|
31
|
-
s.dependency "React-Codegen"
|
|
32
|
-
s.dependency "RCT-Folly"
|
|
33
|
-
s.dependency "RCTRequired"
|
|
34
|
-
s.dependency "RCTTypeSafety"
|
|
35
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
36
|
+
install_modules_dependencies(s)
|
|
36
37
|
end
|
|
37
38
|
end
|
|
@@ -5,7 +5,7 @@ import React, {
|
|
|
5
5
|
useEffect,
|
|
6
6
|
useContext,
|
|
7
7
|
} from 'react';
|
|
8
|
-
import { NativeEventEmitter,
|
|
8
|
+
import { NativeEventEmitter, LogBox, Platform, Linking } from 'react-native';
|
|
9
9
|
import { initialRowndState, rowndReducer } from '../reducer/rowndReducer';
|
|
10
10
|
|
|
11
11
|
import * as NativeRowndModules from '../utils/nativeModule';
|
|
@@ -14,10 +14,8 @@ import type { ContextProps, GlobalState } from './GlobalContext.types';
|
|
|
14
14
|
import type { TAction } from '../constants/action';
|
|
15
15
|
import { ActionType } from '../constants/action';
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
]);
|
|
20
|
-
YellowBox.ignoreWarnings(['YellowBox has been replaced with LogBox.']);
|
|
17
|
+
LogBox.ignoreLogs(['Sending `update_state` with no listeners registered.']);
|
|
18
|
+
LogBox.ignoreLogs(['YellowBox has been replaced with LogBox.']);
|
|
21
19
|
|
|
22
20
|
export const GlobalContext = createContext<
|
|
23
21
|
{ state: GlobalState; dispatch: React.Dispatch<TAction> } | undefined
|
|
@@ -28,7 +26,7 @@ const eventEmitter = new NativeEventEmitter(IOSRowndEventEmitter || Rownd);
|
|
|
28
26
|
const RowndProvider: FunctionComponent<ContextProps> = ({
|
|
29
27
|
children,
|
|
30
28
|
config,
|
|
31
|
-
customizations
|
|
29
|
+
customizations,
|
|
32
30
|
}) => {
|
|
33
31
|
const [state, dispatch] = useReducer(rowndReducer, initialRowndState);
|
|
34
32
|
const value = { state, dispatch };
|
|
@@ -38,7 +36,7 @@ const RowndProvider: FunctionComponent<ContextProps> = ({
|
|
|
38
36
|
if (customizations) {
|
|
39
37
|
NativeRowndModules.customizations(customizations);
|
|
40
38
|
}
|
|
41
|
-
}, [config
|
|
39
|
+
}, [config, customizations]);
|
|
42
40
|
|
|
43
41
|
useEffect(() => {
|
|
44
42
|
const onSessionConnect = (event: any) => {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ContextProps } from './GlobalContext.types';
|
|
3
|
-
import {
|
|
4
|
-
RowndProvider as RowndReactProvider,
|
|
5
|
-
} from '@rownd/react';
|
|
3
|
+
import { RowndProvider as RowndReactProvider } from '@rownd/react';
|
|
6
4
|
|
|
7
5
|
const RowndProvider: React.FC<ContextProps> = ({ children, config }) => {
|
|
8
6
|
return (
|
|
@@ -12,5 +10,4 @@ const RowndProvider: React.FC<ContextProps> = ({ children, config }) => {
|
|
|
12
10
|
);
|
|
13
11
|
};
|
|
14
12
|
|
|
15
|
-
|
|
16
13
|
export { RowndProvider };
|
|
@@ -23,7 +23,7 @@ const RequireSignIn: React.FC<ContextProps> = ({
|
|
|
23
23
|
...signInProps,
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
}, [is_authenticated, is_initializing, signInProps]);
|
|
26
|
+
}, [is_authenticated, is_initializing, signInProps, requestSignIn]);
|
|
27
27
|
|
|
28
28
|
if (is_initializing && initializing) {
|
|
29
29
|
return <>{initializing}</>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useRownd } from '../hooks/rownd';
|
|
3
3
|
|
|
4
4
|
interface SignedOutProps {
|
|
@@ -14,4 +14,4 @@ const SignedOut: React.FC<SignedOutProps> = ({ children }) => {
|
|
|
14
14
|
return <>{children}</>;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export default SignedOut
|
|
17
|
+
export default SignedOut;
|
package/src/hooks/rownd.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type TRowndContext = {
|
|
|
16
16
|
is_initializing: boolean;
|
|
17
17
|
firebase: {
|
|
18
18
|
getIdToken: () => Promise<string>;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
getAccessToken: (token?: string) => Promise<string>;
|
|
21
21
|
manageAccount: () => void;
|
|
22
22
|
requestSignIn: (e?: RequestSignIn) => void;
|
|
@@ -42,9 +42,18 @@ type AuthContext = {
|
|
|
42
42
|
is_verified_user?: boolean;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
export type RequestSignInMethods =
|
|
45
|
+
export type RequestSignInMethods =
|
|
46
|
+
| 'google'
|
|
47
|
+
| 'apple'
|
|
48
|
+
| 'default'
|
|
49
|
+
| 'guest'
|
|
50
|
+
| 'passkey';
|
|
46
51
|
export type RequestSignInIntent = 'sign_in' | 'sign_up';
|
|
47
|
-
export type RequestSignIn = {
|
|
52
|
+
export type RequestSignIn = {
|
|
53
|
+
method?: RequestSignInMethods;
|
|
54
|
+
postSignInRedirect?: string;
|
|
55
|
+
intent?: RequestSignInIntent;
|
|
56
|
+
};
|
|
48
57
|
|
|
49
58
|
export function useRownd(): TRowndContext {
|
|
50
59
|
const { state } = useRowndContext();
|
|
@@ -65,7 +74,7 @@ export function useRownd(): TRowndContext {
|
|
|
65
74
|
data: state.user.data,
|
|
66
75
|
setValue: setUserDataValue,
|
|
67
76
|
set: setUserData,
|
|
68
|
-
isLoading: state.user.isLoading
|
|
69
|
-
},
|
|
77
|
+
isLoading: state.user.isLoading,
|
|
78
|
+
},
|
|
70
79
|
};
|
|
71
80
|
}
|
package/src/hooks/rownd.web.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function useRownd(): TRowndContext {
|
|
|
13
13
|
user,
|
|
14
14
|
manageAccount,
|
|
15
15
|
setUser,
|
|
16
|
-
setUserValue
|
|
16
|
+
setUserValue,
|
|
17
17
|
} = useReactRownd();
|
|
18
18
|
|
|
19
19
|
return {
|
|
@@ -35,7 +35,7 @@ export function useRownd(): TRowndContext {
|
|
|
35
35
|
data: user.data,
|
|
36
36
|
setValue: setUserValue,
|
|
37
37
|
set: setUser,
|
|
38
|
-
isLoading: false // Waiting for react sdk update
|
|
38
|
+
isLoading: false, // Waiting for react sdk update
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -7,7 +7,7 @@ export const initialRowndState: GlobalState = {
|
|
|
7
7
|
data: {
|
|
8
8
|
email: null,
|
|
9
9
|
},
|
|
10
|
-
isLoading: false
|
|
10
|
+
isLoading: false,
|
|
11
11
|
// meta: {}
|
|
12
12
|
},
|
|
13
13
|
auth: {
|
|
@@ -34,7 +34,7 @@ export function rowndReducer(state: GlobalState, action: TAction): GlobalState {
|
|
|
34
34
|
...action.payload?.user?.data,
|
|
35
35
|
email: action.payload?.user?.data?.email,
|
|
36
36
|
},
|
|
37
|
-
isLoading: Boolean(action.payload?.user?.isLoading)
|
|
37
|
+
isLoading: Boolean(action.payload?.user?.isLoading),
|
|
38
38
|
// meta: {}
|
|
39
39
|
},
|
|
40
40
|
auth: {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
package/ios/ReactNative.xcodeproj/xcuserdata/mhamann.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>ReactNative.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|
package/lib/package.json
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rownd/react-native",
|
|
3
|
-
"version": "0.2.5",
|
|
4
|
-
"description": "Rownd bindings for React Native",
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "lib/commonjs/index",
|
|
7
|
-
"module": "lib/module/index",
|
|
8
|
-
"types": "lib/typescript/src/index.d.ts",
|
|
9
|
-
"react-native": "src/index",
|
|
10
|
-
"source": "src/index",
|
|
11
|
-
"files": [
|
|
12
|
-
"src",
|
|
13
|
-
"lib",
|
|
14
|
-
"android",
|
|
15
|
-
"ios",
|
|
16
|
-
"cpp",
|
|
17
|
-
"package.json",
|
|
18
|
-
"react-native.podspec",
|
|
19
|
-
"!lib/typescript/example",
|
|
20
|
-
"!android/build",
|
|
21
|
-
"!ios/build",
|
|
22
|
-
"!**/__tests__",
|
|
23
|
-
"!**/__fixtures__",
|
|
24
|
-
"!**/__mocks__"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"test": "jest",
|
|
28
|
-
"typescript": "tsc --noEmit",
|
|
29
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
30
|
-
"prepare": "bob build && cp package.json lib/",
|
|
31
|
-
"release": "release-it",
|
|
32
|
-
"example": "yarn --cwd example",
|
|
33
|
-
"pods": "cd example && pod-install --quiet",
|
|
34
|
-
"bootstrap": "yarn example && yarn && yarn pods"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [
|
|
37
|
-
"react-native",
|
|
38
|
-
"ios",
|
|
39
|
-
"android"
|
|
40
|
-
],
|
|
41
|
-
"repository": "https://github.com/rownd/react-native",
|
|
42
|
-
"author": "Matt Hamann <mhamann@rownd.io> (https://github.com/rownd)",
|
|
43
|
-
"license": "MIT",
|
|
44
|
-
"bugs": {
|
|
45
|
-
"url": "https://github.com/rownd/react-native/issues"
|
|
46
|
-
},
|
|
47
|
-
"homepage": "https://github.com/rownd/react-native#readme",
|
|
48
|
-
"publishConfig": {
|
|
49
|
-
"registry": "https://registry.npmjs.org/",
|
|
50
|
-
"access": "public"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@commitlint/config-conventional": "^11.0.0",
|
|
54
|
-
"@react-native-community/eslint-config": "^2.0.0",
|
|
55
|
-
"@release-it/conventional-changelog": "^2.0.0",
|
|
56
|
-
"@types/date-fns": "^2.6.0",
|
|
57
|
-
"@types/debounce": "^1.2.1",
|
|
58
|
-
"@types/jest": "^26.0.0",
|
|
59
|
-
"@types/lodash-es": "^4.17.6",
|
|
60
|
-
"@types/phone": "^2.4.1",
|
|
61
|
-
"@types/react": "^17.0.2",
|
|
62
|
-
"@types/react-native": "^0.67.8",
|
|
63
|
-
"@types/react-native-base64": "^0.2.0",
|
|
64
|
-
"commitlint": "^11.0.0",
|
|
65
|
-
"eslint": "^7.2.0",
|
|
66
|
-
"eslint-config-prettier": "^7.0.0",
|
|
67
|
-
"eslint-plugin-prettier": "^3.1.3",
|
|
68
|
-
"husky": "^6.0.0",
|
|
69
|
-
"jest": "^26.0.1",
|
|
70
|
-
"pod-install": "^0.1.0",
|
|
71
|
-
"prettier": "^2.0.5",
|
|
72
|
-
"react": "^17.0.2",
|
|
73
|
-
"react-native": "^0.68.2",
|
|
74
|
-
"react-native-builder-bob": "^0.18.0",
|
|
75
|
-
"release-it": "^14.2.2",
|
|
76
|
-
"typescript": "^4.1.3"
|
|
77
|
-
},
|
|
78
|
-
"peerDependencies": {
|
|
79
|
-
"@gorhom/bottom-sheet": "*",
|
|
80
|
-
"@react-native-clipboard/clipboard": "*",
|
|
81
|
-
"react": "*",
|
|
82
|
-
"react-native": "*",
|
|
83
|
-
"react-native-device-info": "*",
|
|
84
|
-
"react-native-mmkv": "*",
|
|
85
|
-
"react-native-sha256": "*",
|
|
86
|
-
"react-native-svg": "*"
|
|
87
|
-
},
|
|
88
|
-
"jest": {
|
|
89
|
-
"preset": "react-native",
|
|
90
|
-
"modulePathIgnorePatterns": [
|
|
91
|
-
"<rootDir>/example/node_modules",
|
|
92
|
-
"<rootDir>/lib/"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"commitlint": {
|
|
96
|
-
"extends": [
|
|
97
|
-
"@commitlint/config-conventional"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"release-it": {
|
|
101
|
-
"git": {
|
|
102
|
-
"commitMessage": "chore: release ${version}",
|
|
103
|
-
"tagName": "v${version}"
|
|
104
|
-
},
|
|
105
|
-
"npm": {
|
|
106
|
-
"publish": true
|
|
107
|
-
},
|
|
108
|
-
"github": {
|
|
109
|
-
"release": true
|
|
110
|
-
},
|
|
111
|
-
"plugins": {
|
|
112
|
-
"@release-it/conventional-changelog": {
|
|
113
|
-
"preset": "angular"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"eslintConfig": {
|
|
118
|
-
"root": true,
|
|
119
|
-
"extends": [
|
|
120
|
-
"@react-native-community",
|
|
121
|
-
"prettier"
|
|
122
|
-
],
|
|
123
|
-
"rules": {
|
|
124
|
-
"prettier/prettier": [
|
|
125
|
-
"error",
|
|
126
|
-
{
|
|
127
|
-
"quoteProps": "consistent",
|
|
128
|
-
"singleQuote": true,
|
|
129
|
-
"tabWidth": 2,
|
|
130
|
-
"trailingComma": "es5",
|
|
131
|
-
"useTabs": false
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"eslintIgnore": [
|
|
137
|
-
"node_modules/",
|
|
138
|
-
"lib/"
|
|
139
|
-
],
|
|
140
|
-
"prettier": {
|
|
141
|
-
"quoteProps": "consistent",
|
|
142
|
-
"singleQuote": true,
|
|
143
|
-
"tabWidth": 2,
|
|
144
|
-
"trailingComma": "es5",
|
|
145
|
-
"useTabs": false
|
|
146
|
-
},
|
|
147
|
-
"react-native-builder-bob": {
|
|
148
|
-
"source": "src",
|
|
149
|
-
"output": "lib",
|
|
150
|
-
"targets": [
|
|
151
|
-
"commonjs",
|
|
152
|
-
"module",
|
|
153
|
-
[
|
|
154
|
-
"typescript",
|
|
155
|
-
{
|
|
156
|
-
"project": "tsconfig.build.json"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
"dependencies": {
|
|
162
|
-
"@react-native-picker/picker": "^2.4.1",
|
|
163
|
-
"date-fns": "^2.28.0",
|
|
164
|
-
"debounce": "^1.2.1",
|
|
165
|
-
"eventemitter3": "^4.0.7",
|
|
166
|
-
"jwt-decode": "^3.1.2",
|
|
167
|
-
"ky": "^0.30.0",
|
|
168
|
-
"lodash-es": "^4.17.21",
|
|
169
|
-
"phone": "^3.1.20",
|
|
170
|
-
"react-native-base64": "^0.2.1",
|
|
171
|
-
"usehooks-ts": "^2.5.4"
|
|
172
|
-
}
|
|
173
|
-
}
|