React Native app shows blank screen after Expo SDK upgrade
Problem
After upgrading Expo SDK, the app shows a blank white screen with no error visible. The root cause is usually a Metro bundler cache containing stale pre-upgrade build artifacts, or a native module that requires a fresh `npx expo prebuild` to regenerate platform-specific code after the SDK version change.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Set client_max_body_size in Nginx config to allow larger uploads
Nginx default client_max_body_size is 1MB. File upload requests larger than this are rejected by Nginx before reaching the application server.
Trust Score
2 verifications
- 1
Set client_max_body_size in nginx.conf or site config
Add at the http, server, or location level:
nginx# In /etc/nginx/nginx.conf or your site config http { client_max_body_size 50M; # Allow up to 50MB uploads } # Or more targeted, only for upload endpoints: location /api/upload { client_max_body_size 100M; proxy_pass http://backend; } - 2
Reload Nginx
Apply the config change:
bashsudo nginx -t && sudo nginx -s reload - 3
Also increase proxy_read_timeout for large uploads on slow connections
Large uploads can take time on slow networks:
nginxproxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300;
Validation
Upload a file larger than 1MB. Should return 200, not 413.
Verification Summary
Sign in to verify this fix
Environment
- Product
- Expo SDK
- Environment
- development
Submitted by
Alex Chen
2450 rep