first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useRenderDebugInfo = useRenderDebugInfo;
var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
// A hook that logs information when component is rendered, mounted and unmounted.
// It returns a ref that can be passed to a component instance in order to
// enrich the logging information with the component's node handle.
function useRenderDebugInfo(componentName) {
const componentRef = _react.default.useRef(null);
const componentNodeHandle = _react.default.useRef(-1);
const logMessageEvent = _react.default.useEffectEvent(message => {
logMessage(componentName, componentNodeHandle.current, message);
});
_react.default.useEffect(() => {
if (componentRef.current != null) {
componentNodeHandle.current = (0, _reactNative.findNodeHandle)(componentRef.current) ?? -1;
if (componentNodeHandle.current === -1) {
logMessageEvent('failed to find node handle');
}
}
logMessageEvent('mounted');
return () => {
logMessageEvent('unmounted');
};
}, []);
logMessage(componentName, componentNodeHandle.current, 'rendered');
return componentRef;
}
function logMessage(componentName, nodeHandle, message) {
console.log(`${componentName} [${nodeHandle}] ${message}`);
}
//# sourceMappingURL=useRenderDebugInfo.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","e","__esModule","default","useRenderDebugInfo","componentName","componentRef","React","useRef","componentNodeHandle","logMessageEvent","useEffectEvent","message","logMessage","current","useEffect","findNodeHandle","nodeHandle","console","log"],"sourceRoot":"../../../../src","sources":["private/hooks/useRenderDebugInfo.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAkE,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIlE;AACA;AACA;AACO,SAASG,kBAAkBA,CAChCC,aAAqB,EACrB;EACA,MAAMC,YAAY,GAAGC,cAAK,CAACC,MAAM,CAAU,IAAI,CAAC;EAChD,MAAMC,mBAAmB,GAAGF,cAAK,CAACC,MAAM,CAAS,CAAC,CAAC,CAAC;EAEpD,MAAME,eAAe,GAAGH,cAAK,CAACI,cAAc,CAAEC,OAAe,IAAK;IAChEC,UAAU,CAACR,aAAa,EAAEI,mBAAmB,CAACK,OAAO,EAAEF,OAAO,CAAC;EACjE,CAAC,CAAC;EAEFL,cAAK,CAACQ,SAAS,CAAC,MAAM;IACpB,IAAIT,YAAY,CAACQ,OAAO,IAAI,IAAI,EAAE;MAChCL,mBAAmB,CAACK,OAAO,GAAG,IAAAE,2BAAc,EAACV,YAAY,CAACQ,OAAO,CAAC,IAAI,CAAC,CAAC;MAExE,IAAIL,mBAAmB,CAACK,OAAO,KAAK,CAAC,CAAC,EAAE;QACtCJ,eAAe,CAAC,4BAA4B,CAAC;MAC/C;IACF;IAEAA,eAAe,CAAC,SAAS,CAAC;IAE1B,OAAO,MAAM;MACXA,eAAe,CAAC,WAAW,CAAC;IAC9B,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAENG,UAAU,CAACR,aAAa,EAAEI,mBAAmB,CAACK,OAAO,EAAE,UAAU,CAAC;EAElE,OAAOR,YAAY;AACrB;AAEA,SAASO,UAAUA,CACjBR,aAAqB,EACrBY,UAAkB,EAClBL,OAAe,EACf;EACAM,OAAO,CAACC,GAAG,CAAC,GAAGd,aAAa,KAAKY,UAAU,KAAKL,OAAO,EAAE,CAAC;AAC5D","ignoreList":[]}

View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "bottomTabsDebugLog", {
enumerable: true,
get: function () {
return _logging.bottomTabsDebugLog;
}
});
Object.defineProperty(exports, "internalEnableDetailedBottomTabsLogging", {
enumerable: true,
get: function () {
return _logging.internalEnableDetailedBottomTabsLogging;
}
});
Object.defineProperty(exports, "useRenderDebugInfo", {
enumerable: true,
get: function () {
return _useRenderDebugInfo.useRenderDebugInfo;
}
});
var _logging = require("./logging");
var _useRenderDebugInfo = require("./hooks/useRenderDebugInfo");
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["_logging","require","_useRenderDebugInfo"],"sourceRoot":"../../../src","sources":["private/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAAA,QAAA,GAAAC,OAAA;AAOA,IAAAC,mBAAA,GAAAD,OAAA","ignoreList":[]}

View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bottomTabsDebugLog = bottomTabsDebugLog;
exports.internalEnableDetailedBottomTabsLogging = internalEnableDetailedBottomTabsLogging;
let isDetailedLoggingEnabled = false;
function bottomTabsDebugLog(...args) {
if (isDetailedLoggingEnabled) {
console.log(...args);
}
}
function internalEnableDetailedBottomTabsLogging() {
isDetailedLoggingEnabled = true;
}
//# sourceMappingURL=logging.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["isDetailedLoggingEnabled","bottomTabsDebugLog","args","console","log","internalEnableDetailedBottomTabsLogging"],"sourceRoot":"../../../src","sources":["private/logging.ts"],"mappings":";;;;;;;AAAA,IAAIA,wBAAwB,GAAG,KAAK;AAE7B,SAASC,kBAAkBA,CAChC,GAAGC,IAAyC,EAC5C;EACA,IAAIF,wBAAwB,EAAE;IAC5BG,OAAO,CAACC,GAAG,CAAC,GAAGF,IAAI,CAAC;EACtB;AACF;AAEO,SAASG,uCAAuCA,CAAA,EAAG;EACxDL,wBAAwB,GAAG,IAAI;AACjC","ignoreList":[]}

View File

@@ -0,0 +1,2 @@
"use strict";
//# sourceMappingURL=types.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["private/types.ts"],"mappings":"","ignoreList":[]}