chore: Code Improvements
Description
The project is in its initial phase, and the code is written with an idea of move fast and break things. So there are many possible improvements. Mentioning some but not limited to these only :smile:
- Inline styling to the stylesheet
- Proper Scoping and Abstraction of composable components.
- Improve folder structure, if any
- Improve UI/UX
Hey @pranshuchittora, I would like to work on this, just wanted to know, which should I work among the options. Just assign me the problem so that I can work accordingly
Thanks @saideepesh000 you can start by migrating the inline styling to style objects or css modules
@pranshuchittora, it would be better if we add CSS modules, it looks clean and beginner-friendly, what do you think.
Ya sounds great :+1: Go ahead and feel free to ping me on slack for any help/discussion :)
Hi @pranshuchittora, I am getting this error. It seems to the problem related to mdx, how can I tweak the node_modules or replace mdx. Sorry for this silly doubt. I am using windows(this might also be the problem). And according to this even though we are using react-app-rewired, it's not working for me. Please help me.

No worries, let's connect on Slack to discuss and fix the issue.
https://react-native-elements-slack.herokuapp.com/
Hi @pranshuchittora, I have gone through the issues mentioned above and i feel that i can start working on them.😋
hey @pranshuchittora, I have started working on the issues mentioned above and will be contributing soon.😊
Glad to hear that. It would be great if you
- Open a draft PR while you are working
- Make small PRs for fast review & merger
I’ve started working on them and have made a PR for certain areas.. will fix the inline styling and stuff in the next PR
Hi @pranshuchittora, I am getting this error. It seems to the problem related to mdx, how can I tweak the node_modules or replace mdx. Sorry for this silly doubt. I am using windows(this might also be the problem). And according to this even though we are using react-app-rewired, it's not working for me. Please help me.
Hey @pranshuchittora @saideepesh000 I'm facing the exact issue, did you found the solution? I search the slack chats but couldn't find it. If any solution please tell me.
Hi @pranshuchittora, I am getting this error. It seems to the problem related to mdx, how can I tweak the node_modules or replace mdx. Sorry for this silly doubt. I am using windows(this might also be the problem). And according to this even though we are using react-app-rewired, it's not working for me. Please help me.
Hey @pranshuchittora @saideepesh000 I'm facing the exact issue, did you found the solution? I search the slack chats but couldn't find it. If any solution please tell me.
import importMDX from "mdx.macro"; use it to work locally
while pushing convert it back to
import {importMDX} from "mdx.macro"; to avoid build errors
@pranshuchittora this is what i did.. and i think its the best solution right now unless tsc migration is made
@Devesh21700Kumar yeah it did worked 🚀 , but had to change three instances of it to run.
src/content/Avatar/index.jsx
src/content/Badge/index.jsx
src/content/Button/index.jsx
Great.. yes i know. and before pushing revetr it back to import {importMDX} or it will give build error
@pranshuchittora the build error in my PR yesterday was due to this only.. so tweaked a bit to find a solution 🚀
Hi @pranshuchittora, I am getting this error. It seems to the problem related to mdx, how can I tweak the node_modules or replace mdx. Sorry for this silly doubt. I am using windows(this might also be the problem). And according to this even though we are using react-app-rewired, it's not working for me. Please help me.
Hey @pranshuchittora @saideepesh000 I'm facing the exact issue, did you found the solution? I search the slack chats but couldn't find it. If any solution please tell me.
you should
- delete node_modules and package.lock.json file
- then run npm i twice(yes twice)
- then delete node_modules once
- then npm i
- then npm start It should fix this error!!.
or wait for it https://github.com/react-native-elements/playground/pull/97 to be merged. Yes, I know it is weird,
Hi @pranshuchittora I also wanted to be help in this can i?