Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b36b3f9
feat: prepare messaging for TS
russellwheatley Dec 29, 2025
3a897a4
chore: remove old type declaration file
russellwheatley Dec 29, 2025
e9d0662
refactor: convert JS to TS
russellwheatley Dec 29, 2025
834ac17
fix: comprehensive type test file
russellwheatley Dec 29, 2025
92e3025
chore: package.json formatting
russellwheatley Dec 29, 2025
814bedd
fix: correctly import version
russellwheatley Dec 29, 2025
931497c
fix: type augmentation
russellwheatley Dec 29, 2025
b170b80
yarn.lock
russellwheatley Dec 29, 2025
329a794
fix: update relative paths
russellwheatley Dec 29, 2025
d8bbd7c
fix: static types
russellwheatley Dec 29, 2025
2e05ad1
fix: export types
russellwheatley Dec 29, 2025
c7f0fae
chore: remove duplicate notes
russellwheatley Dec 29, 2025
3663107
chore: remove note
russellwheatley Dec 29, 2025
77ff06a
fix: types
russellwheatley Jan 5, 2026
64f3bf1
chore: update package.jsons
russellwheatley Jan 6, 2026
3cc5e75
fix: stop messaging types clashing for jest tests
russellwheatley Jan 6, 2026
2b24a07
fix: remove error thrown that should not be there
russellwheatley Jan 6, 2026
4841e89
test: fix broken test with mock of utils
russellwheatley Jan 6, 2026
beb201b
chore: improve remote message options
russellwheatley Jan 6, 2026
e709740
refactor: improve statics and maintain backwards compatible types
russellwheatley Jan 6, 2026
1da6d3a
fix: getting deprecated warning from getApp. Pass in app to avoid
russellwheatley Jan 7, 2026
3b0dd2a
chore: add missing type declaration file
russellwheatley Jan 7, 2026
ad38d38
Merge branch 'main' into messaging-typescript
russellwheatley Jan 8, 2026
b2cdadf
chore: distribute src/ code
russellwheatley Jan 8, 2026
c6ce9dc
chore: extend base tsconfig
russellwheatley Jan 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"build": "genversion --esm --semi lib/version.ts",
"build:clean": "rimraf android/build && rimraf ios/build",
"compile": "bob build",
"prepare": "yarn run build && yarn compile",
"tsc": "../../node_modules/.bin/tsc"
"prepare": "yarn run build && yarn compile"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,7 +38,7 @@
},
"exports": {
".": {
"source": "./lib/index.js",
"source": "./lib/index.ts",
"import": {
"types": "./dist/typescript/module/lib/index.d.ts",
"default": "./dist/module/index.js"
Expand Down
18 changes: 18 additions & 0 deletions packages/messaging/__tests__/messaging.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
import { beforeEach, describe, expect, it, jest } from '@jest/globals';

// Mock getFirebaseRoot before any imports that use it
jest.mock('@react-native-firebase/app/lib/internal', () => {
const actual = jest.requireActual('@react-native-firebase/app/lib/internal');
return Object.assign({}, actual, {
getFirebaseRoot: jest.fn(() => ({
utils: jest.fn(() => ({
playServicesAvailability: {
isAvailable: true,
status: 0,
hasResolution: false,
isUserResolvableError: false,
error: undefined,
},
})),
})),
});
});

import messaging, {
getMessaging,
deleteToken,
Expand Down
Loading
Loading