Upgrade Guide
Overview
This guide helps you safely upgrade your Botble Ecommerce Mobile App to newer versions.
Before Upgrading
Backup Your Work
Always backup before upgrading:
Backup custom files:
global.css(theme customizations)src/i18n/locales/*.json(translations)assets/(logos and images).env(configuration)- Any modified source files
Create a git branch (if using git):
bashgit checkout -b backup-before-upgrade git add . git commit -m "Backup before upgrade to vX.X.X"
Check Release Notes
Read the Release Notes for:
- Breaking changes
- New features
- Required steps
- Known issues
Upgrade Process
Step 1: Download New Version
- Download the latest version from CodeCanyon
- Extract to a new folder
- Keep your old version for reference
Step 2: Compare Files
Compare key configuration files:
# Compare package.json for dependency changes
diff old-version/package.json new-version/package.json
# Compare app.json for configuration changes
diff old-version/app.json new-version/app.jsonStep 3: Merge Changes
Option A: Fresh Install (Recommended)
Copy new version files to your project
Restore your customizations:
- Copy back
global.csscustomizations - Copy back translation files
- Copy back assets
- Restore
.envsettings
- Copy back
Install dependencies:
bashrm -rf node_modules npm install
Option B: Manual Merge
- Update
package.jsonwith new dependencies - Apply code changes manually
- Resolve conflicts carefully
- Test thoroughly
Step 4: Update Dependencies
npm installIf you encounter dependency conflicts:
rm -rf node_modules package-lock.json
npm installStep 5: Test Thoroughly
Test all major features:
- [ ] App launches correctly
- [ ] Login/logout works
- [ ] Products load
- [ ] Cart functions
- [ ] Checkout works
- [ ] Account features work
- [ ] Theme looks correct
- [ ] Translations work
Step 6: Clear Caches
npm start -- --clearHandling Breaking Changes
Expo SDK Updates
If the new version updates Expo SDK:
- Check Expo upgrade guide
- Update your local Expo CLI:bash
npm install -g expo-cli - Follow SDK-specific migration steps
React Native Updates
For React Native version changes:
- Check compatibility with your libraries
- Test on both iOS and Android
- Watch for deprecation warnings
API Changes
If API structure changed:
- Update affected services in
src/services/ - Update TypeScript types if needed
- Test all API-dependent features
Common Upgrade Issues
TypeScript Errors
Problem: Type errors after upgrade.
Solution:
npm run typecheck
# Fix reported errorsMissing Dependencies
Problem: Module not found errors.
Solution:
rm -rf node_modules
npm installStyle Issues
Problem: Styling looks wrong after upgrade.
Solution:
- Check for Tailwind config changes
- Review
global.cssupdates - Clear Metro bundler cache
Build Failures
Problem: EAS builds fail after upgrade.
Solution:
- Check
eas.jsonfor required updates - Clear EAS cache:bash
eas build --clear-cache - Update credentials if needed
Rolling Back
If upgrade causes issues:
With Git
git checkout backup-before-upgrade
npm installWithout Git
- Restore from your backup
- Reinstall dependencies:bash
npm install
Post-Upgrade Checklist
- [ ] All features working
- [ ] No console errors
- [ ] Performance is acceptable
- [ ] Both platforms (iOS/Android) work
- [ ] Production build successful
- [ ] Documentation updated
Version-Specific Guides
Check if your version has specific upgrade notes:
From 1.0.x to 1.1.x
(Example - check actual release notes)
- New feature X added
- Configuration change Y required
- Deprecated feature Z removed
From 1.1.x to 2.0.x
(Example - check actual release notes)
- Breaking change A
- Required migration step B
- New dependency C
Getting Help
If you encounter upgrade issues:
- Check Troubleshooting Guide
- Review Release Notes
- Contact Support
Include in support request:
- Current version
- Target version
- Error messages
- Steps taken
