You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update dependencies, avoid vulnerabilities
* replace componentWillMount
* update RN 0.61.2
* add default styling of outer view to be stretched
* docs(ReadMe): Update Readme
* chore(simple-markdown): update dependency, simple markdown to 0.7.1
* fix(List): fix styling for list not applied to the first list
* chore(Docs): update readme
Co-authored-by: andangrd <[email protected]>
@@ -209,6 +218,35 @@ Default style properties will be applied to the markdown. You could replace it w
209
218
210
219
This prop will accept a function. This is a callback function for any link inside markdown syntax, so you could costumize the handler for onClick event from the link.
211
220
221
+
`onLinkCallback` should be a function that returns a promise.
222
+
223
+
224
+
```
225
+
226
+
const onLinkCallback = (url) => {
227
+
console.log('test test test');
228
+
229
+
const isErrorResult = false;
230
+
231
+
return new Promise((resolve, reject) => {
232
+
isErrorResult ? reject() : resolve();
233
+
});
234
+
};
235
+
236
+
...
237
+
238
+
<Markdown
239
+
styles={markdownStyle.collectiveMd}
240
+
onLink={onLinkCallback}>
241
+
{text}
242
+
</Markdown>
243
+
244
+
...
245
+
246
+
247
+
```
248
+
249
+
212
250
*NOTE :*
213
251
_Email link (mailto) could be tested on real device only, it won't be able to test on Simulator as discuss in this [StackOverflow](https://stackoverflow.com/questions/44769710/opneurl-react-native-linking-call-mailto)_
214
252
@@ -258,6 +296,8 @@ This project was actually forked from [lwansbrough](https://github.com/lwansbrou
258
296
* Allow user to replace default rules, update default font family for `codeBlock` on android [(v1.6.0)](https://github.com/andangrd/react-native-markdown-package/releases/tag/v1.6.0)
259
297
260
298
* Update to use latest simple-markdown [(v1.7.0)](https://github.com/andangrd/react-native-markdown-package/releases/tag/v1.7.0)
299
+
300
+
* Update to use latest simple-markdown [(v1.8.0)](https://github.com/andangrd/react-native-markdown-package/releases/tag/v1.8.0)
0 commit comments