Commit ef7c1e0
authored
fix(android): Fix marker images disappearing after CodePush update (#179)
* fix(android): Support file:// and content:// URIs for marker images after CodePush
- Add support for file:// and content:// URI formats in rnAssetUri
- Fix marker image loading logic to properly handle CodePush bundle URIs
- Update drawable resource condition to exclude URI-formatted rnAssetUri
* refactor(android): Rename httpUri to assetUri for better clarity
- Rename httpUri variable to assetUri to reflect that it handles multiple URI formats
- The variable now correctly represents file://, content://, http://, and https:// URIs
- Improves code readability and consistency with rnAssetUri naming1 parent 443d8d4 commit ef7c1e0
1 file changed
Lines changed: 12 additions & 6 deletions
File tree
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
63 | | - | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
113 | | - | |
114 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
0 commit comments