content-collections icon indicating copy to clipboard operation
content-collections copied to clipboard

MDX on React Native: 0,s.jsx is not a function (it is an Object)

Open Bartek532 opened this issue 1 year ago • 2 comments

I'm compiling my MDX to code without any problem, but when I'm trying to display it in React Native (Expo) I get following error, what should I do?

Code:

export default function Blog() {
  const page = getPage("test", "hello-world");

  return <MDXContent components={components} code={page?.body} />;
}

Error: image

Bartek532 avatar Sep 05 '24 20:09 Bartek532

I'm sorry, but I don't have much experience with React Native, and I don't even know that MDX on React Native is a thing. I'm not sure if this can work. It would be nice if someone out there could help with this ticket.

sdorra avatar Sep 06 '24 06:09 sdorra

Sure! I'm looking for some implementation of MDX in React Native and didn't find anything that works 😕

Bartek532 avatar Sep 06 '24 07:09 Bartek532