react-native-marked 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/typescript/lib/Markdown.d.ts +1 -1
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/gmsgowtham/react-native-marked/actions/workflows/build.yml)
|
|
4
4
|
|
|
5
|
-
Markdown renderer for React Native powered by [marked.js](https://marked.js.org/)
|
|
5
|
+
Markdown renderer for React Native powered by [marked.js](https://marked.js.org/) with built-in theming support
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ import Markdown from 'react-native-marked';
|
|
|
19
19
|
const ExampleComponent = () => {
|
|
20
20
|
return (
|
|
21
21
|
<Markdown
|
|
22
|
-
value={`#Hello world`}
|
|
22
|
+
value={`# Hello world`}
|
|
23
23
|
flatListProps={{
|
|
24
24
|
initialNumToRender: 8,
|
|
25
25
|
}}
|
|
@@ -30,6 +30,15 @@ const ExampleComponent = () => {
|
|
|
30
30
|
export default ExampleComponent;
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
## Example
|
|
34
|
+
https://snack.expo.dev/@gmsgowtham/react-native-marked
|
|
35
|
+
|
|
36
|
+
## Screenshots
|
|
37
|
+
|
|
38
|
+
| Dark Theme | Light Theme |
|
|
39
|
+
| :-------------------------------------------------------------------: | :---------------------------------------------------------------------: |
|
|
40
|
+
|  |  |
|
|
41
|
+
|
|
33
42
|
## Contributing
|
|
34
43
|
|
|
35
44
|
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
@@ -42,7 +51,8 @@ MIT
|
|
|
42
51
|
|
|
43
52
|
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
44
53
|
|
|
45
|
-
##
|
|
54
|
+
## Built with
|
|
46
55
|
|
|
56
|
+
- [Marked](https://marked.js.org/)
|
|
47
57
|
- [React Native Fit Image](https://github.com/huiseoul/react-native-fit-image)
|
|
48
58
|
- [@jsamr/react-native-li](https://github.com/jsamr/react-native-li)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MarkdownProps } from './types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ value, flatListProps, styles
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ value, flatListProps, styles, }: MarkdownProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-marked",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Markdown renderer for React Native powered by marked.js",
|
|
5
5
|
"main": "dist/commonjs/index",
|
|
6
6
|
"module": "dist/module/index",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"commitlint": "^17.0.2",
|
|
62
62
|
"eslint": "^8.4.1",
|
|
63
63
|
"eslint-config-prettier": "^8.5.0",
|
|
64
|
+
"eslint-plugin-jest": "^27.0.4",
|
|
64
65
|
"eslint-plugin-prettier": "^4.0.0",
|
|
65
66
|
"jest": "^28.1.1",
|
|
66
67
|
"pod-install": "^0.1.0",
|
|
@@ -136,6 +137,9 @@
|
|
|
136
137
|
"prettier",
|
|
137
138
|
"plugin:@typescript-eslint/recommended"
|
|
138
139
|
],
|
|
140
|
+
"plugins": [
|
|
141
|
+
"jest"
|
|
142
|
+
],
|
|
139
143
|
"rules": {
|
|
140
144
|
"prettier/prettier": [
|
|
141
145
|
"error",
|
|
@@ -148,6 +152,9 @@
|
|
|
148
152
|
}
|
|
149
153
|
],
|
|
150
154
|
"@typescript-eslint/ban-ts-comment": "off"
|
|
155
|
+
},
|
|
156
|
+
"env": {
|
|
157
|
+
"jest/globals": true
|
|
151
158
|
}
|
|
152
159
|
},
|
|
153
160
|
"eslintIgnore": [
|