I am trying to create an application for programmers in React Native.
I am very new to React-native, so only thing that I understood was to use <Text>
instead of <span>
and use <View>
instead of <div>
blah blah blah..
However, I want to include the actual code inside the React-Native app. I came across that I could not use <pre>
nor <code>
and instead I get the following error
Invariant Violation: View config getter callback for component `code` must be a function (received `undefined`). Make sure to start component names with a capital letter.
Help is needed. If there is a library that does this let me know also. Waiting for React-native experts!
{javascript code goes here}