react-native-markdown-renderer icon indicating copy to clipboard operation
react-native-markdown-renderer copied to clipboard

Fixed headings bug for Debug & Release modes

Open psegalen opened this issue 7 years ago • 9 comments

PR #79 is functional only in Debug mode. This one isn't pretty but I think I didn't break anything and it works in both Debug and Release modes.

psegalen avatar Oct 09 '18 14:10 psegalen

@alsotang I'll do the same PR on your fork EDIT: seems I can't PR on your fork... :(

psegalen avatar Oct 09 '18 14:10 psegalen

@mientjan do you think you could review and merge this PR since headings aren't correctly rendered by the lib in React Native 0.57

psegalen avatar Oct 09 '18 14:10 psegalen

absolutely you can pr my fork. but perhaps mine and this one are the same repo name, or some problem with comman parent. I dont know.

And I would merge this pr and publish a new version. Yep this pr seems some ugly, but when we talk about a random unique key value, it's ok.

alsotang avatar Oct 10 '18 12:10 alsotang

I just publish [email protected]. Merged this pr

alsotang avatar Oct 10 '18 12:10 alsotang

I think this commit is also ok, https://github.com/alsotang/react-native-markdown-renderer/commit/ffe99bb632791e5f4a156f637ff02b6a4422f3ab

Can you give more advise?

alsotang avatar Oct 12 '18 17:10 alsotang

because type is just a string. so we can judge string, but ignore the key.

I try this in debug mode and release mode

alsotang avatar Oct 12 '18 17:10 alsotang

my test method is wrong. ignore me

alsotang avatar Oct 12 '18 18:10 alsotang

For those waiting on this PR, we switched to react-native-simple-markdown, and the transition was remarkably seamless. Granted, my project doesn't use even the majority of Markdown features.

carsondarling avatar May 01 '19 15:05 carsondarling

I have forked this project and merged all outstanding PR's that made sense (including a similar one to this one that fixed the issue) here: https://github.com/iamacup/react-native-markdown-display/

or react-native-markdown-display on npm

in case anyone else comes accross this and needs the merged PRs

iamacup avatar Nov 06 '19 17:11 iamacup