File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import { Platform } from 'react-native';
4
4
5
5
import { isExpo } from '../utils/environment' ;
6
6
7
+ const ANDROID_DEFAULT_BUNDLE_NAME = 'app:///index.android.bundle' ;
8
+ const IOS_DEFAULT_BUNDLE_NAME = 'app:///main.jsbundle' ;
9
+
7
10
/**
8
11
* Creates React Native default rewrite frames integration
9
12
* which appends app:// to the beginning of the filename
@@ -28,8 +31,13 @@ export function createReactNativeRewriteFrames(): RewriteFrames {
28
31
}
29
32
30
33
// Expo adds hash to the end of bundle names
31
- if ( isExpo ( ) ) {
32
- frame . filename = Platform . OS === 'android' ? 'app:///index.android.bundle' : 'app:///main.jsbundle' ;
34
+ if ( isExpo ( ) && Platform . OS === 'android' ) {
35
+ frame . filename = ANDROID_DEFAULT_BUNDLE_NAME ;
36
+ return frame ;
37
+ }
38
+
39
+ if ( isExpo ( ) && Platform . OS === 'ios' ) {
40
+ frame . filename = IOS_DEFAULT_BUNDLE_NAME ;
33
41
return frame ;
34
42
}
35
43
You can’t perform that action at this time.
0 commit comments