Skip to content

Conversation

@amrmelsayed
Copy link
Collaborator

Convert svg files to React Native SVG components
Raw svg files aren't directly supported by React Native, this commit migrates all raw svg files to React Native Svg following the existing structure and deletes the raw files. The only .svgs left are related to the logo.

Cleanup
Remove unused files

Refactor styles
The codebase currently uses 3 styling approaches; Nativewind, StyleSheet.create and inline styles, this commit removes the third approach (inline styles) and reverts back to standard Stylesheet.create syntax.

Optimize web build
The gesture handling framework which is required by the drawer layout component (and many other RN components) in native mode adds signifcant overhead to the web .js bundle, this commit excludes the framework from the web builds reducing bundle size by 25%.

Bundle size before:
image

Bundle size after:
image

@waleedkadous waleedkadous merged commit 8c31b26 into ansari-project:develop Feb 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants