Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: react 19 custom renderer [POC] #1690

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
cf2a107
refactor: bring config host
mdjastrzebski Sep 14, 2024
e8a72c4
chore: wip
mdjastrzebski Sep 14, 2024
c321efd
feat: basic rendered implementation
mdjastrzebski Sep 14, 2024
5186552
refactor: refactods
mdjastrzebski Sep 15, 2024
38ef431
feat: working toJSON method
mdjastrzebski Sep 15, 2024
cdc7c68
chore: implement root, update & unmount
mdjastrzebski Sep 15, 2024
f0e3acb
feat: pass first tests
mdjastrzebski Sep 16, 2024
ef086f4
feat: dynamic HostElement prop calculation
mdjastrzebski Sep 16, 2024
eaf3e1c
feat: support more tests
mdjastrzebski Sep 16, 2024
43ed115
chore: expand test coverage
mdjastrzebski Sep 16, 2024
e5eb0c3
feat: more passing tests
mdjastrzebski Sep 16, 2024
ea795ba
refactor: centralize renderer selection
mdjastrzebski Sep 16, 2024
47da527
chore: fix lint & typecheck
mdjastrzebski Sep 16, 2024
fc6e07b
feat: fix renderHook tests
mdjastrzebski Sep 16, 2024
7af0b70
chore: fix render debug
mdjastrzebski Sep 16, 2024
f88d1bb
feat: fix config and render-debug tests
mdjastrzebski Sep 16, 2024
c946453
fix: to have text content
mdjastrzebski Sep 16, 2024
56715a9
chore: workaround for fireEvent.press
mdjastrzebski Oct 14, 2024
26992a1
feat: support string not in Text error
mdjastrzebski Oct 15, 2024
50ad609
chore: fix remaining tests, disable not relevant ones
mdjastrzebski Oct 15, 2024
4569f46
chore: fix typecheck & lint
mdjastrzebski Oct 15, 2024
989e1e6
chore: remove dead code
mdjastrzebski Oct 15, 2024
5295332
chore: remove dead code
mdjastrzebski Oct 16, 2024
aa182d1
refactor: use HostElement type in place of ReactTestInstance
mdjastrzebski Oct 16, 2024
806c9f8
refactor: fix typecheck and lint
mdjastrzebski Oct 16, 2024
abe8d71
refactor: inline host parent getter
mdjastrzebski Oct 16, 2024
ecc2b7f
refactor: simplify navigation
mdjastrzebski Oct 16, 2024
c4a03a3
refactor: checks
mdjastrzebski Oct 16, 2024
09fbb4c
refactor: replace UNSAFE_root with container
mdjastrzebski Oct 16, 2024
9e7b1ab
chore: fix *ByType typing
mdjastrzebski Oct 16, 2024
8b8c135
chore: remove irrelevant tests
mdjastrzebski Oct 16, 2024
95030fb
chore: remove redundant string validation feature
mdjastrzebski Oct 16, 2024
12b4f76
refactor: cleanup renderer code
mdjastrzebski Oct 16, 2024
08747ea
chore: migrate act from RTL
mdjastrzebski Oct 16, 2024
8f3bda1
chore: remove test renderer dep
mdjastrzebski Oct 16, 2024
ddc8da7
chore: filter expected errors
mdjastrzebski Oct 16, 2024
cf4b8b7
chore: reduce act warnings
mdjastrzebski Oct 16, 2024
a9b0b44
refactor: renderer API to be more similar to React DOM
mdjastrzebski Oct 17, 2024
1fb7552
chore: simplify find-all
mdjastrzebski Oct 17, 2024
2d434d7
Merge branch 'main' into poc/custom-renderer
mdjastrzebski Oct 18, 2024
12abbe0
chore: create yarn lock
mdjastrzebski Oct 18, 2024
db18123
refactor: tweaks
mdjastrzebski Oct 18, 2024
e0d6c21
refactor: fix test
mdjastrzebski Oct 18, 2024
2c70f9d
refactor: constants
mdjastrzebski Oct 18, 2024
b1282e6
chore: tweak setup
mdjastrzebski Oct 18, 2024
85442c4
refactor: exclude hidden elements
mdjastrzebski Oct 19, 2024
d15b6e9
chore: reformat comments
mdjastrzebski Oct 21, 2024
ab06cf5
refactor: self code review
mdjastrzebski Oct 21, 2024
a45ba3b
chore: update reconciler
mdjastrzebski Oct 25, 2024
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
Prev Previous commit
Next Next commit
chore: tweak setup
  • Loading branch information
mdjastrzebski committed Oct 18, 2024
commit b1282e6cd82f2f25c45d6645e29e54e67a66d441
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
preset: './jest-preset',
setupFilesAfterEnv: ['./jest-setup.ts'],
testPathIgnorePatterns: ['timer-utils', 'examples/', 'experiments-app/', 'experiments-rtl/'],
testPathIgnorePatterns: ['build/', 'examples/', 'experiments-app/', 'timer-utils'],
testTimeout: 60000,
transformIgnorePatterns: ['/node_modules/(?!(@react-native|react-native)/).*/'],
snapshotSerializers: ['@relmify/jest-serializer-strip-ansi/always'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { View, Text } from 'react-native';
import { createRenderer } from './renderer';
import { createRenderer } from '../renderer';

function Passthrough({ children }: { children: React.ReactNode }) {
return children;
Expand Down
Loading