Closed AdultLink closed 6 years ago
@AdultLink unfortunately that prop is not currently supported in the native version of the module, i've updated the readme -- https://github.com/conorhastings/react-native-syntax-highlighter/blob/master/README.md#unsupported-props
It would require some work in react-syntax-highlighter core to support this feature -- https://github.com/conorhastings/react-syntax-highlighter/blob/master/src/highlight.js#L10-L40 -- and i'm not sure when I might be able to get to it
I see, it made no sense at all!
I guess it's not the most critical feature, although it would've been a nice feature for my little project.
Thank you for your answer!
@AdultLink closing for now, will contact you when implemented
First of all, sorry if this is not the place to discuss this problems, but I can't find any other better place. Also, I'm not the best at React-native, so in the case I'm making a terribly stupid mistake, please forgive me.
I'm getting the
Expected a component class, got [Object object]
error whenever I try to pass any props other thanlanguage
,style
andchildren
. This is my code:In this case, the
showLineNumbers
prop causes the error, when I take it out, it works properly. Could anyone point me in the right direction? It seems like such a silly thing that it's driving me crazy.