index.tsx 517 B

123456789101112131415161718
  1. import {
  2. createRoot
  3. } from "react-dom/client";
  4. import App from "../src/index";
  5. const originalWarn = console.warn;
  6. console.warn = (...args) => {
  7. if (typeof args[0] === "string" && (
  8. args[0].includes("pointerEvents") ||
  9. args[0].includes("useNativeDriver") ||
  10. args[0].includes("TouchableWithoutFeedback") ||
  11. args[0].includes("Cannot record touch")
  12. )) return;
  13. originalWarn(...args);
  14. };
  15. const root = createRoot(document.getElementById("app-root")!);
  16. root.render(<App />);