Skip to content

Commit 4c81ad7

Browse files
authored
Merge pull request #14 from native-html/chore/migrate-render-html-with-history
Chore - Migrate react-native-render-html with history
2 parents 170da76 + feb0f7a commit 4c81ad7

File tree

2,147 files changed

+63696
-77621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,147 files changed

+63696
-77621
lines changed

.eslintrc.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
module.exports = {
22
root: true,
3-
extends: ['@react-native-community'],
3+
extends: ['@react-native'],
44
parser: '@typescript-eslint/parser',
5-
plugins: ['@typescript-eslint'],
5+
plugins: ['@react-native'],
66
ignorePatterns: ['lib/', 'types/'],
77
rules: {
8-
'comma-dangle': ['error', 'never'],
98
'@typescript-eslint/no-unused-vars': [
109
'error',
1110
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true }
12-
],
13-
'no-eval': 'off'
11+
]
1412
}
1513
};
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: 🐞 Bug Report
2+
description: If you have found a bug, you should chose this template.
3+
labels: bug
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: "Decision Table"
8+
description: |
9+
A good amount of bug reports are actually feature requests. To help you with that, read and check all the boxes to make sure you really need to fill the full template. If you can't check those two boxes, this is a feature request, not a bug. Fill a feature request here: https://native-html.canny.io/features
10+
options:
11+
- label: "My issue does not look like “The HTML attribute 'xxx' is ignored” (unless
12+
we claim support for it)"
13+
required: true
14+
- label: "My issue does not look like “The HTML element `<yyy>` is not rendered”"
15+
required: true
16+
validations:
17+
required: true
18+
- type: checkboxes
19+
attributes:
20+
label: "Good Faith Declaration"
21+
description: "We're happy to help, but our time is valuable and we'd like you to make sure you haven't been able to find an answer publicly available."
22+
options:
23+
- label: "I have read the HELP document here: https://git.io/JBi6R"
24+
required: true
25+
- label: "I have read the CONTRIBUTING document here: https://git.io/JJ0Pg"
26+
required: true
27+
- label: "I have confirmed that this bug has not been reported yet"
28+
required: true
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: "Description"
34+
placeholder: "Describe the bug. Please provide reproduction steps, screnshots and screencasts when appropriate."
35+
validations:
36+
required: true
37+
- type: textarea
38+
attributes:
39+
label: React Native Information
40+
render: sh
41+
placeholder: "The result of running `react-native info` or `expo diagnostics`. If you are ready to provide a snack, just type \"confer snack\"."
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: "RNRH Version"
47+
placeholder: "Type which version of react-native-render-html you are using."
48+
validations:
49+
required: true
50+
- type: checkboxes
51+
attributes:
52+
label: Tested Platforms
53+
description: Platforms on which you have tested the bug
54+
options:
55+
- label: Android
56+
- label: iOS
57+
- label: Web
58+
- label: MacOS
59+
- label: Windows
60+
validations:
61+
required: true
62+
- type: checkboxes
63+
attributes:
64+
label: Reproduction Platforms
65+
description: Platforms on which you have reproduced the bug
66+
options:
67+
- label: Android
68+
- label: iOS
69+
- label: Web
70+
- label: MacOS
71+
- label: Windows
72+
validations:
73+
required: true
74+
- type: textarea
75+
attributes:
76+
label: Minimal, Reproducible Example
77+
description: |
78+
[*What is a Minimal, Reproducible Example (MRE)?*](https://stackoverflow.com/help/minimal-reproducible-example). Provide either a link to an expo snack, git repository, or a code block. You can fork [**our Snack template**](https://snack.expo.dev/@jsamr/rnrhtml-template) to gain time (follow instructions from the README in this snack)! The MRE **must be self-contained**, and **HTML inlined** unless strictly necessary (e.g., a bug with remote HTML). Also note:
79+
- If your issue is related to operations such as dependency resolution or testing, **you must** provide a MRE in the form of a git repository.
80+
- If and only if you provide a regression test in lieu of a MRE, you can reference the related PR instead.
81+
placeholder: "https://snack.expo.dev/@jsamr/rnrhtml-template"
82+
validations:
83+
required: true
84+
- type: textarea
85+
attributes:
86+
label: Additional Notes
87+
description: "Any extra information that can help with the resolution. If other libraries are involved in the MRE, note their versions here."
88+
validations:
89+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 📝 Feature Requests and Enhancements
4+
url: https://native-html.canny.io/features
5+
about: A page where all feature requests are handled.
6+
- name: 🆘 Getting Help
7+
url: https://github.com/meliorence/react-native-render-html/blob/master/HELP.adoc
8+
about: A resource which describes all the steps you should go through when you're facing an issue with this library.
9+
- name: 🌐 Official Website
10+
url: https://meliorence.github.io/react-native-render-html/
11+
about: The official website with plenty of guides, blog posts and documentation!

.github/workflows/render.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will do a clean install of node dependencies, run JS and Typescript tests.
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: render
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
12+
jobs:
13+
test:
14+
name: Testing
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [20.x]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: yarn install --immutable
28+
- run: yarn build:css-processor
29+
name: Build dependencies (css-processor)
30+
- run: yarn build:transient-render-engine
31+
name: Build dependencies (transient-render-engine)
32+
- run: yarn test:render:ts
33+
name: Typescript Tests
34+
- run: yarn run test:render:lint
35+
name: Linting Tests
36+
- run: yarn run test:render:jest --coverage
37+
name: Behavior Tests
38+
- run: yarn build:render
39+
name: Build
40+
- uses: codecov/codecov-action@v4
41+
with:
42+
flags: render
43+
fail_ci_if_error: true
44+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ android/keystores/debug.keystore
6262
# Expo
6363
.expo/*
6464

65-
# yarn berry (zero install)
65+
# yarn berry
66+
.pnp.*
6667
.yarn/*
67-
!.yarn/cache
68+
!.yarn/patches
6869
!.yarn/releases
6970
!.yarn/plugins
7071
!.yarn/sdks
@@ -74,3 +75,4 @@ android/keystores/debug.keystore
7475
coverage
7576
lib
7677
snippets.html
78+
lerna-debug.log

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn commitlint --edit "$1"
5-

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.9.0
1+
22

0 commit comments

Comments
 (0)