iOS 14ã§ã¯ãç»åã«ç»åã衚瀺ããããšã¯ã§ããŸãããã次ã®ããã«å Žæã衚瀺ããããšã¯ã§ããŸãã
requireïŒ'./ images / add_scan_images.png'ïŒ
}
/>
ç°å¢ïŒ
XcodeããŒãžã§ã³12.0ããŒã¿ïŒ12A6159ïŒ
ã·ãã¥ã¬ãŒã¿ãŒïŒiPhoneSE-第2äžä»£-14.0
"react"ïŒ "16.11.0"ã
"react-native"ïŒ "0.62.2"
ïŒèŠåïŒ | æ¬ èœããŠããç°å¢æ å ± |
---|---|
ïŒæ å ±æºïŒ | åé¡ã«ã¯ãéçºç°å¢ã«é¢ããæ
å ±ãäžè¶³ããŠããå¯èœæ§ããããŸãã ã³ã³ãœãŒã«ã§react-native info ãå®è¡ãããšãäžè¶³ããŠããæ
å ±ãååŸã§ããŸãã |
ç§ã¯åãåé¡ã«çŽé¢ããŠããŸã
System:
OS: macOS 10.16
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 493.38 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.4.0 - ~/.nvm/versions/node/v14.4.0/bin/node
Yarn: 1.22.4 - ~/.nvm/versions/node/v14.4.0/bin/yarn
npm: 6.14.5 - ~/.nvm/versions/node/v14.4.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 25, 27, 28, 29
Build Tools: 28.0.3, 29.0.0
System Images: android-27 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6308749
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
Languages:
Python: 2.7.16 - /usr/local/bin/python
npmPackages:
@react-native-community/cli: ^4.5.1 => 4.5.1
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
*react-native*: Not Found
ãã ããXcode-betaããã³iOS14ã§ã¯im
ç§ã¯åãåé¡ãæ±ããŠããŸãïŒ
åãåé¡...
åãåé¡...
ããããŸãããã€ã¡ãŒãžã®åé¡ã¯ããã«ããXcode12Betaã§äœæãããå Žåã«ã®ã¿çºçããããšãããããŸããã ããããååŸããiOS14.0ããŒã¿ããã€ã¹ãµããŒãã䜿çšããŠXcode11.5ã䜿çšããŠãã«ããäœæãããšãã€ã¡ãŒãžã¯æ£åžžã«æ©èœããŸãã
ããã¯éè€ããåé¡ã§ã-https://github.com/facebook/react-native/issues/29215
ïŒèŠåïŒ | å¿ é ãã£ãŒã«ãããããŸãã |
---|---|
ïŒæ å ±æºïŒ | åé¡ã«å¿ èŠãªæ å ±ãäžè¶³ããŠããå¯èœæ§ããããŸãã GitHubã¯ãæ°ããåé¡ãäœæããããã³ã«ãµã³ãã«ãã³ãã¬ãŒããæäŸããŸãã æ»ã£ãŠãå¿ ããã³ãã¬ãŒãã«èšå ¥ããŠããã ããŸãããã ãã®åé¡ãç·šéããããéããŠæ°ããåé¡ãéãããšãã§ããŸãã |
react-native+0.63.0.patch
ã䜿çšãã
diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
index 21f1a06..2444713 100644
--- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
+++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
@@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink
- (void)displayLayer:(CALayer *)layer
{
+ if (!_currentFrame) {
+ _currentFrame = self.image;
+ }
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env
new file mode 100644
index 0000000..361f5fb
--- /dev/null
+++ b/node_modules/react-native/scripts/.packager.env
@@ -0,0 +1 @@
+export RCT_METRO_PORT=8081
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå
ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸã
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸã
ã©ããããããšãããããŸããã
_currentFrameãnilã®å Žåã [super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸã
ç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
} else {
[super displayLayer:layer];
}
åå¿ãã€ãã£ã0.62.xãšåãåé¡ã ä¿®æ£ãããã¯ç§»æ€ã§ããå¯èœæ§ã¯ãããŸããïŒ RN 0.63.xã¯ãŸã éåžžã«ãã°ããããã¢ããã°ã¬ãŒãã§ããŸããã
åå¿ãã€ãã£ã0.62.xãšåãåé¡ã ä¿®æ£ãããã¯ç§»æ€ã§ããå¯èœæ§ã¯ãããŸããïŒ RN 0.63.xã¯ãŸã éåžžã«ãã°ããããã¢ããã°ã¬ãŒãã§ããŸããã
ä»ã®ãšããããã©ãŒã¯ã䜿çšãããããããããã±ãŒãžãé©çšããã®ãæåã ãšæããŸãã
ææ¡ãããããããé©çšããããšã§åé¡ãä¿®æ£ããããšãã§ããŸããã 以åã®RNããŒãžã§ã³ã§ããŸãæ©èœããããšã確èªããŸãã
RNïŒ0.62.2
XcodeïŒ12.0
iOSã·ãã¥ã¬ãŒã¿ãŒïŒ14
æ確åãè¿œå ãããšïŒç§ã®ãããªpatch-package
ã®ä»ã®åå¿è
ã®å ŽåïŒããã©ã«ããŒãpatchesãã¯ãããžã§ã¯ãã®ã«ãŒãã¬ãã«ã«é
眮ããå¿
èŠããããŸãã
ãã®ããã ãã«ãããã©ã€ãã©ãªã䜿çšããã®ã¯ããéãã®ããã§ãã 0.62.2ã«ãã€ããŒããããšããŠè¿œå ããã®ã¯é£ããã§ããããïŒãããã0.62.3ã«ããŸããïŒïŒã ããã¯å®éã«ã¯3è¡ã®ã³ãŒãã§ãã
çŸåšã®ãšããã0.63.xã«ã¯ããã€ãã®å€§ããªãã°ããããããã«ã¯å¯ŸåŠãããªãããã§ãïŒ0.64.xã¯ããããã§ãïŒããã®ãããåœé¢ã¯0.62ã®ãŸãŸã§ãã
ãã®ããã ãã«ãããã©ã€ãã©ãªã䜿çšããã®ã¯ããéãã®ããã§ãã
ããã±ãŒãžã«ããããé©çšããªãã§ãã ãã...
ãããããã±ãŒãžã䜿çšããããªããã¢ããªãææ°ããŒãžã§ã³ã«æŽæ°ããããªãã®ã«ããªãã匷å¶ãéçºè
ãããŒããããå
šäœãç¡èŠããã®ã§ããããã
äœããããã®ã«ã人ã«ããããããšãããããã®ã¯ãªãã§ããïŒ
ãããã¯ããã§å®å šã«æ©èœããŸããã 0.62.2
åå¿ãã€ãã£ã0.62.xãšåãåé¡ã ä¿®æ£ãããã¯ç§»æ€ã§ããå¯èœæ§ã¯ãããŸããïŒ RN 0.63.xã¯ãŸã éåžžã«ãã°ããããã¢ããã°ã¬ãŒãã§ããŸããã
ããããããreact-native+0.62.2.patchã®äžã®ããããã©ã«ãã«è¿œå ããŠãã ãã
diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
index 21f1a06..0ff66f3 100644
--- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
+++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
@@ -275,6 +275,8 @@ - (void)displayLayer:(CALayer *)layer
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
+ } else {
+ [super displayLayer:layer];
}
}
diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env
new file mode 100644
index 0000000..361f5fb
--- /dev/null
+++ b/node_modules/react-native/scripts/.packager.env
@@ -0,0 +1 @@
+export RCT_METRO_PORT=8081
npx patch-package
ãå®è¡ããŸã
ããã¯0.61.5ã®ãããã§ã
diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
index 01aa75f..24c1075 100644
--- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
+++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
@@ -267,8 +267,10 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink
- (void)displayLayer:(CALayer *)layer
{
if (_currentFrame) {
- layer.contentsScale = self.animatedImageScale;
- layer.contents = (__bridge id)_currentFrame.CGImage;
+ layer.contentsScale = self.animatedImageScale;
+ layer.contents = (__bridge id)_currentFrame.CGImage;
+ } else {
+ [super displayLayer:layer];
}
}
Imageã³ã³ããŒãã³ãã¯ãã€ã§ãFastImageã«çœ®ãæããããšãã§ããŸãã ããããã°ãäœãããããåœãŠãå¿ èŠã¯ãããŸããã ç»åã®èªã¿èŸŒã¿ãåäžããŸãã
patch-package
ä¿®æ£ããã°ã©ã ã䜿çšããŠããŠãCI / CDã»ããã¢ããã䜿çšããŠããå Žåã¯ã package.json
ã«"postinstall": "patch-package"
ãè¿œå ããããšãå¿ããªãã§ãã ããã
Imageã³ã³ããŒãã³ãã¯ãã€ã§ãFastImageã«çœ®ãæããããšãã§ããŸãã ããããã°ãäœãããããåœãŠãå¿ èŠã¯ãããŸããã ç»åã®èªã¿èŸŒã¿ãåäžããŸãã
FastImageã¯ãå€ãã®ãã°ãããã¡ã³ããã³ã¹ãããã©ã€ãã©ãªã§ã¯ãããŸããã
ãªããããè¯ããšæããŸããïŒ
FastImageãæ©èœããŠããŸãããªãã¯ããã䜿ãããšãã§ããŸã
@ johnlim5847 ãpostinstallããè¿œå ããå ŽæïŒpackage.jsonã®ãã®è¡ããpatch-packageãããŸããïŒ
å®è¡æã«ãã®ãšã©ãŒãçºçããïŒnpx patch-package
ããããé©çšããŠããŸã...
ãšã©ãŒïŒnode_modules/react-nativeã«ååšããªãããã±ãŒãžreact-nativeã®ããããã¡ã€ã«ãèŠã€ãããŸãã
@shrimallamanojæåã«https://github.com/ds300/patch-packageã«ã¢ã¯ã»ã¹ããå¿ èŠããããŸã
ãã...ããããšãããããŸããnpxãå®è¡ãããšããããæ£åžžã«é©çšãããåé¡ãçºçããŸãããã解決çãæ©èœããŠããªãããã§ããæªã...ä»ã®è§£æ±ºçã¯ãããŸããïŒ
diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
index 21f1a06..2444713 100644
--- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
+++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
@@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink
- (void)displayLayer:(CALayer *)layer
{
+ if (!_currentFrame) {
+ _currentFrame = self.image;
+ }
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env
new file mode 100644
index 0000000..361f5fb
--- /dev/null
+++ b/node_modules/react-native/scripts/.packager.env
@@ -0,0 +1 @@
+export RCT_METRO_PORT=8081
çããããã®ãããã¯ReactNative0.61.5ã§ãæ©èœããŸãã åãåé¿çã䜿çšããŸãã
1.-ãyarnaddpatch-packageããå®è¡ããŸã
2.-ãããžã§ã¯ãã®ã«ãŒãã«patchesãšããååã®æ°ãããã©ã«ããäœæããŸãã
3.-ãã®ãã©ã«ããŒå
ã«react-native+0.61.5.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãyarnpatch-packageããå®è¡ãããããããã€ã³ã¹ããŒã«åŸã®ã¹ã¯ãªããã«é
眮ããŸã
ãã®ãªã³ã¯ããã©ã£ãŠãIOS14ã®ã€ã¡ãŒãžã«é¢ããåé¡ãä¿®æ£ããŸãã
ä¿®æ£ã§ã¯ãªã芳å¯
åããã°ããããŸãããéçºããã»ã¹äžã®ã¿ã§ãã ãããã¯ãé»è©±ãšxcodeããã°ã©ã ãæŽæ°ããåŸã«çºçããŸããã ïŒios14ãxcode12ïŒå¥åŠãªããšã«ãã¢ããªã±ãŒã·ã§ã³ãåžå ŽããããŠã³ããŒããããšãéæ¢ç»ã衚瀺ãããŸããã å¥ã®é»è©±ã§è©ŠããŠã¿ããšåçãèŠããŸãã æŽæ°åŸãç§ã®éçºç°å¢ã¯å®å šã«å°ç¡ãã«ãªããŸããã
@tomcheungãäžèšã§ç€ºåããŠããããã«ããã¡ã€ã«RCTUIImageViewAnimated.m
ãæåã§ç·šéãããšãããŒãžã§ã³0.61.5ã®åé¡ãä¿®æ£ãããŸãã ããããšãïŒ
ææ¡ïŒãããã ãã§0.63
ã«ã¢ããã°ã¬ãŒãããªãã§ãã ããã ã¢ããã°ã¬ãŒãããããšããŸãããã firebase
ã code-push
ãåå ã§ãã«ãã«å€±æããŸããã
ãŸã ãã®åé¡ãçºçããŠããŸãããããããçŸåšåé¡ã®æåã®è§£æ±ºçã§ãããã©ããã誰ãã«ã¢ããã€ã¹ã§ããŸããïŒ
0.61.2ã®ãããã¯ãããŸããïŒ
0.61.2ã®ãããã¯ãããŸããïŒ
ç§ã®ããã 解決ããŸããã
0.62.2解決ããŸããã ããããå®éã®ããã€ã¹ã¯å€±æããŸãã...ã
解決çã¯ãããŸããïŒ
https://github.com/huylvdev/react-native-fix-imageããã¯ç§ã®ããã«åããŸã
ifïŒ_currentFrameïŒ{
layer.contentsScale = self.animatedImageScale;
layer.contents =ïŒ__bridge idïŒ_currentFrame.CGImage;
} ããããªããš {
[ã¹ãŒããŒãã£ã¹ãã¬ã€ã¬ã€ã€ãŒïŒã¬ã€ã€ãŒ];
}
ïŒ/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
ããã¯ç§ã®ããã«åããŸããããããšã
ç§ã®ããã 解決ããŸããã
ãã¿ãŸãããããããŸãããã©ãããæå³ã§ããïŒ ã©ã®ããããé©çšããŸãããïŒ
ããŒãã¢ãžã¥ãŒã«å ã§ä¿®æ£ããå¿ èŠããããããäžæçã«ä¿®æ£ããã ãã§ããŸããã£ã解決çã¯ãå°æ¥ãããçºçããªãããã«ããä»ã®æ¹æ³ã¯ãããŸããïŒ
åå¿ãã€ãã£ãããŒãžã§ã³<0.63ã®å Žå
ReactNativeImageã®ä»£ããã«react-native-fast-imageã䜿çšããŠãã ãã
react-native-fast-imageã®äœæ¥ãè¡ãã«ã¯ã react-native-fast-imageã®ãã©ãŒã«ããã¯ãç¡å¹ã«ããŠãã ãã
ããã¯IOS14ã§åäœããŸãïŒ
ç§ã®ããã 解決ããŸããã
ãã¿ãŸãããããããŸãããã©ãããæå³ã§ããïŒ ã©ã®ããããé©çšããŸãããïŒ
@EmmanueleVillaã¯ããã®ãããhttps://github.com/facebook/react-native/issues/29279#issuecomment -658244428ãé©çšããŠããã patch-packageã䜿çšããŠä¿æããŸã:)
diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
çããããã®ãããã¯ReactNative0.61.5ã§ãæ©èœããŸãã åãåé¿çã䜿çšããŸãã
1.-ãyarnaddpatch-packageããå®è¡ããŸã
2.-ãããžã§ã¯ãã®ã«ãŒãã«patchesãšããååã®æ°ãããã©ã«ããäœæããŸãã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.61.5.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãyarnpatch-packageããå®è¡ãããããããã€ã³ã¹ããŒã«åŸã®ã¹ã¯ãªããã«é 眮ããŸã
ç§ã61.5ãå®è¡ããŠããŸããããã¯ç§ã®ããã«åããŸããïŒ 61.5以å€ã®ããŒãžã§ã³ã䜿çšããŠããå Žåã¯ãããããã¡ã€ã«ã®ååãå€æŽããŠããŒãžã§ã³ã䜿çšãããšã yarn patch-package
ãå®è¡ãããšãreact-nativeããŒãžã§ã³ãäžèŽããããšãæ€åºããããããããããé©çšãããŸãã
ããšãã°ãããŒãžã§ã³61.2ã®å Žåãããããã¡ã€ã«react-native+0.61.2.patch
ãšããååãä»ããŸãã
#import "RCTUIImageViewAnimated+WLAdd.h"
#import <objc/runtime.h>
<strong i="5">@implementation</strong> RCTUIImageViewAnimated (WLAdd)
+ (void)load {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Method fromMethod = class_getInstanceMethod([self class], @selector(displayLayer:));
Method toMethod = class_getInstanceMethod([self class], @selector(wl_displayLayer:));
method_exchangeImplementations(fromMethod, toMethod);
});
}
- (void)wl_displayLayer:(CALayer *)layer {
UIImage *currentFrame = [self valueForKey:@"currentFrame"];
CGFloat animatedImageScale = [[self valueForKey:@"animatedImageScale"] floatValue];
if (currentFrame) {
layer.contentsScale = animatedImageScale;
layer.contents = (__bridge id)currentFrame.CGImage;
} else {
[super displayLayer:layer];
}
}
<strong i="6">@end</strong>
ããã¯v0.61.4
ã§æ©èœããŸãããããããã¡ã€ã«ãçæããããã®ã¯ããã«ç°¡åãªæ¹æ³ããããŸãã
tl;drhttps ://github.com/ds300/patch-packageèªäœã®æ瀺ã«åŸããŸãã
詳现ãªæé ã¯æ¬¡ã®ãšããã§ãã
ããã¯ãReact NativeãœãŒã¹ã³ãŒãv0.63.2
ã§è¡ãããä¿®æ£ã§ãïŒ https ïŒ//github.com/facebook/react-native/commit/123423c2a9258c9af25ca9bffe1f10c42a176bf3
# make the change in `node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m` file
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
} else {
[super displayLayer:layer];
}
# run patch-package to create a .patch file
npx patch-package react-native
# this will generate the patch file in the patches folder
# patches/react-native+0.61.4.patch
# then add to postinstall script
"scripts": {
"postinstall": "patch-package"
}
ã圹ã«ç«ãŠãã°ïŒ
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸã
RN v0.61.2ã®äœ¿çšäžã«ãã®åé¡ãçºçããŸããããããã§ãåé¡ã¯è§£æ±ºããŸããã ããããšã
åå¿ãã€ãã£ãããŒãžã§ã³<0.63ã®å Žå
ReactNativeImageã®ä»£ããã«react-native-fast-imageã䜿çšããŠãã ãã
react-native-fast-imageã®äœæ¥ãè¡ãã«ã¯ã react-native-fast-imageã®ãã©ãŒã«ããã¯ãç¡å¹ã«ããŠãã ãã
ããã¯IOS14ã§åäœããŸãïŒ
ããã¯ç§ã®ããã«åããïŒ
糞ãããããã±ãŒãž
ç§ã®ããã 解決ããŸããã
ãã¿ãŸãããããããŸãããã©ãããæå³ã§ããïŒ ã©ã®ããããé©çšããŸãããïŒ
@EmmanueleVillaã¯ãã®ãããïŒ29279ïŒã³ã¡ã³ãïŒãé©çšããŠããã patch-packageã䜿çšããŠãããä¿æããŸã:)
ããªãã¯ç·ã§ã@jkim430ããããšã
0.61.4ã§ãã¹ãŠã®ãœãªã¥ãŒã·ã§ã³ãè©ŠããŸãããããªã¢ãŒãã€ã¡ãŒãžã¯æ£åžžã«èªã¿èŸŒãŸããŠããŸãããããŒã«ã«ã¢ã»ããã衚瀺ãããã ãã§ã¯ãããŸããã
äœãæ¡ã¯ïŒ
xcodeããããšãããããŸãã
_currentFrameãnilã®å Žåã
[super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸãç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; } else { [super displayLayer:layer]; }
ããã¯ç§ã®ããã«åããã ããããšãïŒ ããã«ã npx patch-package
ïŒè©³çŽ°ã¯ãã¡ãïŒã䜿çšããŠãã®å€æŽãç¶æã§ããnode_modulesãåã€ã³ã¹ããŒã«ããããã³ã«ä¿®æ£ãç¶ããå¿
èŠã¯ãããŸããã
ãããã¯ãç§ãä»ã®ããžãã¹ãå§ããŠããã°ã©ããŒã«ãªãã®ããããããªããããªãã°ã§ãã
https://github.com/huylvdev/react-native-fix-imageããã¯ç§ã®ããã«åããŸã
ã©ããããããšãããããŸãããäžæ¥ãéãããåŸãç§ã¯ãã®å©ãã«ãã£ãŠæçµçã«ä¿®æ£ããŸãã
ãã®ãããã¯ããŒãžã§ã³0.63.2ã«ãé©çšã§ããããšã確èªã§ããŸãã ãã¡ã€ã«ã®ååãïŒreact-native + 0.62.2.patchïŒã«å€æŽããŸãã
ãã®å·ãå床éããŠãã ããã
ããã¯ãŸã åé¡ã解決ããŠããŸããã
https://github.com/huylvdev/react-native-fix-imageããã¯ç§ã®ããã«åããŸã
ã©ããããããšãããããŸãããäžæ¥ãéãããåŸãç§ã¯ãã®å©ãã«ãã£ãŠæçµçã«ä¿®æ£ããŸãã
ãããç§ã¯react-native-fix-image
ã䜿ã£ãŠã¿ãŸãã
npx react-native-fix-image
ã§ãããnode_modulesãåé€ããŠåã€ã³ã¹ããŒã«ããå Žåã
ã¢ããªã¯ç»åãããŒãããŸããã
ãã®ãããªåé¡ã«çŽé¢ããŸãããïŒç»åãã¬ã³ããªã³ã°ããããã«æ¯ånpxã³ãã³ããå®è¡ããå¿
èŠããããŸããïŒ
ã©ãã
https://github.com/facebook/react-native/issues/29279#issuecomment -658244428
https://github.com/huylvdev/react-native-fix-imageããã¯ç§ã®ããã«åããŸã
ã©ããããããšãããããŸãããäžæ¥ãéãããåŸãç§ã¯ãã®å©ãã«ãã£ãŠæçµçã«ä¿®æ£ããŸãã
ããã¯ç§ã®ããã«åããŸãïŒ Thks !!
ãªãªãŒã¹ã¢ãŒãã§ã¯æ©èœããŸãããäœãèãã¯ãããŸããïŒ
@tomcheungã©ããããããšãããããŸããïŒ
ç§ã¯åé¡ãäœã§ããããèŠã€ããããã«2æ¥éé ãæã£ã...
å€ãããŒãžã§ã³ã®ReactNativeïŒ0.60.6ãªã©ïŒãå®è¡ããŠããå Žåã¯ã RCTUIImageViewAnimated.m
ãã¡ã€ã«ãååšããªããããããããé©çšã§ããŸããã React Native Fast Image v8.1.5ã䜿çšããSDWebImageããããpod update SDWebImage
ã§ã¢ããã°ã¬ãŒãããããšã§ããã®åé¡ã解決ããŸããã å
·äœçã«ã¯ãSDWebImageãv5.8.1ããv5.9.2ã«ã¢ããã°ã¬ãŒãããŸããã
ãœãŒã¹ïŒ https ïŒ//github.com/DylanVann/react-native-fast-image/issues/702#issuecomment -653930858
ãªãªãŒã¹ããŒãžã§ã³ã§ç»åã衚瀺ãããªãã ïŒæåºãããå芧äŒ39ãããžã§ã¯ãïŒRN 0.63.3
æŽæ°ïŒmetro.config.jsãæŽæ°ãããšãåé¡ãä¿®æ£ãããŸãã=> https://forums.expo.io/t/assets-missing-only-in-ios-release-build-after-ejecting/42759
ããã¯ãRNãªãªãŒã¹ã§æ£åŒã«ä¿®æ£ãããäºå®ã§ããïŒ ã¢ãã¡ã€ã¯ãåé¡ã¯ãŸã ããã«ãããŸãã
ããã¯ãRNãªãªãŒã¹ã§æ£åŒã«ä¿®æ£ãããäºå®ã§ããïŒ ã¢ãã¡ã€ã¯ãåé¡ã¯ãŸã ããã«ãããŸãã
+1ã ããŸã«å€ããããžã§ã¯ãã®Imã§ãããããåœãŠãå¿ èŠããããŸãã
diff --git a / node_modules / react-native / Libraries / Image / RCTUIImageViewAnimated.mb / node_modules / react-native / Libraries / Image / RCTUIImageViewAnimated.m
ã€ã³ããã¯ã¹21f1a06..2444713100644
--- a / node_modules / react-native / Libraries / Image / RCTUIImageViewAnimated.m
+++ b / node_modules / react-native / Libraries / Image / RCTUIImageViewAnimated.m
@@ -272,6 +272,9 @@-ïŒvoidïŒdisplayDidRefreshïŒïŒCADisplayLink *ïŒdisplayLink
- ïŒvoidïŒdisplayLayerïŒïŒCALayer *ïŒlayer
{{
- ifïŒïŒ_currentFrameïŒ{
- _currentFrame = self.image;
- }
ifïŒ_currentFrameïŒ{
layer.contentsScale = self.animatedImageScale;
layer.contents =ïŒ__bridge idïŒ_currentFrame.CGImage;
diff --git a / node_modules / react-native / scripts / .packager.env b / node_modules / react-native / scripts / .packager.env
æ°ãããã¡ã€ã«ã¢ãŒã100644
ã€ã³ããã¯ã¹0000000..361f5fb
--- / dev / null
+++ b / node_modules / react-native / scripts / .packager.env
@@ -0,0 +1 @@
+ export RCT_METRO_PORT = 8081
ããããšãïŒ ããã¯ç§ã®ãã¹ãŠã®å€ãRNãããžã§ã¯ãã§ããŸããããŸããã
react-native+0.63.0.patch
ã®ãã¡ã€ã«ãäœæããåã«ã0.63ã§ã¯ãªãå€ããããžã§ã¯ãã®ReactNativeããŒãžã§ã³ã眮ãæããã ãã§ãã
ç§ã¯ãããªãäœæããŸããããããŠããã誰ããå©ããããšãé¡ã£ãŠããŸãã
@AsbarAliã®ä¿®æ£ã¯ç§ã®ããã«åãããRNããŒãžã§ã³ïŒ0.61.5ã
_currentFrameãnilã®å Žåã
[super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸã
ç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
https://github.com/facebook/react-native/blob/1c634a921887caf02f1b9fba6fd177c352f9ef78/Libraries/Image/RCTUIImageViewAnimated.m#L283 -L289if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; } else { [super displayLayer:layer]; }
ããã¯ç§ã®ããã«åããã ããããšãïŒ ããã«ã
npx patch-package
ïŒè©³çŽ°ã¯ãã¡ãïŒã䜿çšããŠãã®å€æŽãç¶æã§ããnode_modulesãåã€ã³ã¹ããŒã«ããããã³ã«ä¿®æ£ãç¶ããå¿ èŠã¯ãããŸããããããã¯ãç§ãä»ã®ããžãã¹ãå§ããŠããã°ã©ããŒã«ãªãã®ããããããªããããªãã°ã§ãã
ããããé©çšããã«ã¯ã npx patch-package react-native
ãå®è¡ããããšãéèŠã§ãã
ããã誰ãããããã³ã¢ã«ããŒãžãããããšã確èªã§ããŸããïŒ
ãããããã±ãŒãžã¯è§£æ±ºçã§ãããæ°žç¶çãªãã®ã§ãã£ãŠã¯ãªããŸããã
調æ»ã§ãããŸã§ãããéãããŸãŸã«ããŸãã
圌ãã¯ãããä¿®æ£ããäºå®ã¯ãããŸãããïŒ
https://www.npmjs.com/package/react-native-fix-image
ç§ã®ããã«åããŠããŸã
ä¿®æ£ãããããã§ãã 以åã®ããŒãžã§ã³ã«ããã¯ããŒããããããšã¯ãããŸããã ä¿®æ£ã¯63.3ã«ãããšæããŸã
@AsbarAliã®ä¿®æ£ã¯ç§ã®ããã«åãããRNããŒãžã§ã³ïŒ0.61.5ã
ã©ããã£ãŠãã£ãã®ïŒ RN61.2ã䜿çšããŠããŸã
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸãRN v0.61.2ã®äœ¿çšäžã«ãã®åé¡ãçºçããŸããããããã§ãåé¡ã¯è§£æ±ºããŸããã ããããšã
ããã«ã¡ã¯ãç§ãå©ããŠãããŸãããïŒ RN 61.2ãæã£ãŠããŸããããŸã£ããæ©èœããŸããã äžã®ããã²ãŒã·ã§ã³ç»åã衚瀺ãããªãå¯èœæ§ããããŸã
ãã@rjtubera ããããã¯0.63ã§åäœããã¯ãã§ãããäŒãããããšããã«ãããšReactNativeã®0.61.5ããŒãžã§ã³ã§ãåäœããŸãã ãããããReact Native 0.61.2ãã0.61.5ã«ã¢ããã°ã¬ãŒãããŠãåŒçšããæé ãåé©çšãããšãããŸãããå¯èœæ§ããããŸãã
ããã§ãåé¡ã解決ããªãå Žåã¯ã0.63ã«ã¢ããã°ã¬ãŒãããŠã¿ãŠãã ããã äžéšã®ã³ã³ããŒãã³ããç Žæããå¯èœæ§ãããããã泚æãå¿ èŠã§ãã ã¢ããã°ã¬ãŒãåŸã«ãã¹ãŠã®ã³ã³ããŒãã³ãããã¹ãããŠããã¹ãŠãæ£åžžã«æ©èœããããšã確èªããå¿ èŠããããŸãïŒiOSããã³AndroidïŒã
ãã®åé¡ãçºçããŸããããã®ãªã³ã¯ã®æé ã«åŸã£ãŠä¿®æ£ããŸãã
https://github.com/facebook/react-native/pull/29420#issuecomment -707435412
Alabiã«æè¬ããŸããç§ããReactNativeã«ããããé©çšããŠåé¡ãåé¡ããŸããã ãããŸã§ã®ãšããããŸãæ©èœããŠããŸãð
å·®åºäººïŒAlabi Temitope [email protected]
è¿ä¿¡å
ïŒfacebook / react-native [email protected]
æ¥ä»ïŒ2020幎10æ13æ¥ç«ææ¥03:56
å®å
ïŒfacebook / react-native [email protected]
CcïŒKieran Desmond [email protected] ãã³ã¡ã³ã[email protected]
件åïŒReïŒ[facebook /react-native]ç»åã¯iOS14ã§ç»åã衚瀺ã§ããŸããïŒïŒ29279ïŒ
ãã®åé¡ãçºçããŸããããã®ãªã³ã¯ã®æé ã«åŸã£ãŠä¿®æ£ããŸãã
â
ã³ã¡ã³ãããã®ã§ãããåãåã£ãŠããŸãã
ãã®ã¡ãŒã«ã«çŽæ¥è¿ä¿¡ããããGitHub https://github.com/facebook/react-native/issues/29279#issuecomment-707436028ã§è¡šç€ºãããã https ïŒ//github.com/notifications/unsubscribe-auth/AIENJUWD2RES5AC52CT4MG3SKOXURANCNFSM4ORGDXZAã®ç»é²ã解é€ããŠãã ããã
ç§ã¯reactnativeã®0.63ããŒãžã§ã³ã«ã¢ããã°ã¬ãŒãããŸããããåãåé¡ã«çŽé¢ããŠããŸãã誰ã§ãç§ãå©ããããšãã§ããŸããïŒ
å€ãããŒãžã§ã³ã®ReactNativeïŒ0.60.6ãªã©ïŒãå®è¡ããŠããå Žåã¯ã
RCTUIImageViewAnimated.m
ãã¡ã€ã«ãååšããªããããããããé©çšã§ããŸããã React Native Fast Image v8.1.5ã䜿çšããSDWebImageããããpod update SDWebImage
ã§ã¢ããã°ã¬ãŒãããããšã§ããã®åé¡ã解決ããŸããã å ·äœçã«ã¯ãSDWebImageãv5.8.1ããv5.9.2ã«ã¢ããã°ã¬ãŒãããŸãããåºå žïŒ DylanVann / react-native-fast-imageïŒ702ïŒã³ã¡ã³ãïŒ
å®ç§ã«åäœããŸãã
react-native-fast-imageã®ããŒãžã§ã³8.3.2ã«ã¯ãã¢ããã°ã¬ãŒããããããŒãžã§ã³ã®SDWebImageãå«ãŸããŠããããã pod update
ããå¿
èŠã¯ãããŸããã
https://www.npmjs.com/package/react-native-fix-image
ç§ã®ããã«åããŠããŸã
ç§ã®ããã«ãåããã ð
React-Native0.63.1ãã0.63.2ãžã®ã¢ããã°ã¬ãŒãã¯ç§ãã¡ã®ããã«åããŸããã
Xcode 12.0.1.
ãšios 14
ã®RN 0.62.2
ã§åãåé¡ã«çŽé¢ããŠããŸãã 解決çã¯ãããŸããïŒ
Xcode
12.0.1.
ãšios14
ã®RN0.62.2
ã§åãåé¡ã«çŽé¢ããŠããŸãã 解決çã¯ãããŸããïŒ
@ghasemikasra39åãããŒãžã§ã³ã§åãåé¡ã«çŽé¢ããŠããŸããã react-native-fix-imageãã€ã³ã¹ããŒã«ãããšããŸããããŸããã
ããã«é¢ãã@RutsSantosãç§ã®ããã«åããïŒ
1ïŒnpm install --save react-native-fix-image
2ïŒnpxreact-native-fix-image
3ïŒãããžã§ã¯ããåæ§ç¯ãã
React-Native0.63.1ãã0.63.2ãžã®ã¢ããã°ã¬ãŒãã¯ç§ãã¡ã®ããã«åããŸããã
ããã¯ç§ã®ããã«åããã
ããã¯ç§ã®ããã«åããã ããããšã@JordanRosas
@JordanRosasç§ã®ããã«ãçŽ æŽãããåããŠãããŠããããšã
åå¿ãã€ãã£ãããŒãžã§ã³ã0.62.2ãã0.63.3ã«ã¢ããã°ã¬ãŒããããšãnpmã¢ãžã¥ãŒã«ã«ããããé©çšãããã€ã³ã¹ããŒã«ãããããå¿ èŠããªããªããŸãã
0.62.3ã¯ååšããŸããïŒ
0.63.3
0.63.2
0.63.1
0.63.0
0.63.0-rc.1
0.63.0-rc.0
⯠0.62.2
0.62.1
0.62.0
0.63.3
0.63.2
0.63.1
0.63.0
0.63.0-rc.1
0.63.0-rc.0
â¯0.62.2
0.62.1
0.62.0
ä¿®æ£
ãã®é倧ãªRNãã°ã解決ããããŸã§ãã¢ããã°ã¬ãŒãã§ããªã人ãããŸãïŒ https ://github.com/facebook/react-native/issues/29451
ãã®ãããã¢ã³ããŒããã0.62.xãŸãã¯ãã°ã®ãã0.63.xããŒãžã§ã³ã®ããããã§ç«ã¡åŸçããŠããŸãã
_currentFrameãnilã®å Žåã
[super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸãç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; } else { [super displayLayer:layer]; }
ã§ããŸãã ããããšãïŒ
ããã±ãŒãžãã€ã³ã¹ããŒã«ããããªãå ŽåããŸãã¯node_modules
ãçŽæ¥ç·šéããããªãå Žåã¯ã httpsïŒ //stackoverflow.com/a/64495360/7477198ã®ããã«podfileã«preinstall
ã¹ããŒãžããã¯ãè¿œå ããŠã¿ãŠãã ãããç§ã®ããã«åããã ããã¯ããgitãã¬ã³ããªãŒã§ãã
ç§ã®å ŽåãRN 63.3ã§ããç©çããã€ã¹ã«ç»åã衚瀺ãããŸããã åé¿çãšããŠã https ïŒ//www.base64-image.de/ã§base 64ã®ç»åããšã³ã³ãŒãããããã$ïŒã§ã¯ãªãrequire('imagePath')
Image
ã³ã³ããŒãã³ãã®source
ãšããŠäœ¿çšããŸããã require('imagePath')
_currentFrameãnilã®å Žåã
[super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸãç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; } else { [super displayLayer:layer]; }
ããªãã¯å€©æã§ããããªãã¯ç§ã®åœãæããŸããïŒ
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸã
ããããšã
RN0.61.5ã§ããŸããããŸãã
react-native+0.61.5.patch
ãšããããããã¡ã€ã«ãè¿œå ããŸãã
DylanVann/react-native-fast-imageã®ä¿®æ£ããããŸãcd ios && pod update SDWebImage
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
@ legion-zverä¿®æ£ããŠãããŠããããšãïŒ ããã§RCT_METRO_PORTãå¿ èŠã§ããããããšããããžã§ã¯ãã«åºæã®ãã®ã§ããïŒ
Xcode12.0.1äžã®RN0.59.0ã ããã³ios14.解決çã¯ãããŸããïŒ
Xcode12.0.1äžã®RN0.59.0ã ããã³ios14.解決çã¯ãããŸããïŒ
3ã€ã®è§£æ±ºçïŒ
"react-native": "0.63.3"
ã§ããããã--configuration=Release
ã«ãŸã ååšããŠããããšã確èªã§ããŸãã ãã ãã --configuration=Debug
ããŸãæ©èœããŸãã
https://www.npmjs.com/package/react-native-fix-imageã¯åœ¹ã«ç«ã¡ãŸãããããã«ãã€ã³ãäžæããŸã
ãã®ãšã©ãŒã§æ§æã解æŸããŸãã
.../node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m:278:5: error: expected expression
} else {
^
ãŸããç§ã®ã¢ããªã®ãŠãŒã¶ãŒã¯iOSã§ïŒURLããã®ïŒç»åã®èªã¿èŸŒã¿ãçµéšããŸããããããã¯ãã¹ãŠã®äººã«çºçããããã§ã¯ãªããäžéšã®äººã ãã«çºçããŸãã ãããä¿®æ£ããŠãã ããã ReactNative0.63.3ã䜿çšããŠããŸãã
https://i.ibb.co/1vDc6kv/1.jpg<-ãã®åé¡ã瀺ãç»åãžã®ãªã³ã¯
@douglasjuniorã¯ããŸãæ©èœããŸãïŒ ã©ããããããšãïŒ
ããã«é¢ãã@RutsSantosãç§ã®ããã«åããïŒ
- npm install --savereact-native-fix-image
- npxreact-native-fix-image
- ãããžã§ã¯ããåæ§ç¯ãã
ç§ã®ããã«åããððððð
Xcode12.0.1äžã®RN0.59.0ã ããã³ios14.解決çã¯ãããŸããïŒ
3ã€ã®è§£æ±ºçïŒ
- node_moduleså ã§æåã§åé¡ãä¿®æ£ããŸã
- ãã®ä¿®æ£ã©ã€ãã©ãªã䜿çšããhttps://www.npmjs.com/package/react-native-fix-image
- ReactNative0.63.3ã«ã¢ããããŒã
å¥ã®Qãnode_moduleså ã§æåã§.1ã䜿çšããŸããããã¯ããããã¯ãŒã¯ããã®ç»åã®è¡šç€ºã§ã¯ããŸãæ©èœããŸãããããŒã«ã«ç»åã衚瀺ã§ããŸããã
ãŸããç§ã®ã¢ããªã®ãŠãŒã¶ãŒã¯iOSã§ïŒURLããã®ïŒç»åã®èªã¿èŸŒã¿ãçµéšããŸããããããã¯ãã¹ãŠã®äººã«çºçããããã§ã¯ãªããäžéšã®äººã ãã«çºçããŸãã ãããä¿®æ£ããŠãã ããã ReactNative0.63.3ã䜿çšããŠããŸãã
https://i.ibb.co/1vDc6kv/1.jpg<-ãã®åé¡ã瀺ãç»åãžã®ãªã³ã¯
èªåã«èµ·ãã£ãåé¡ãèŠã€ããŸããã WebPã¯iOS13ã§ãµããŒããããŠããªãã£ããããSDWebImageWebPCoderãããã䜿çšããŠreact-native-fast-imageãã€ã³ã¹ããŒã«ããå¿ èŠããããŸããã
ãããä¿®æ£ããããã®MicrosoftAppCenterãã«ãã¹ã¯ãªãããæã£ãŠãã人ã¯ããªããšæããŸããïŒ
åèãŸã§ã«ãSDWebImage https://github.com/DylanVann/react-native-fast-image/issues/730ãã¢ããã°ã¬ãŒãããåŸã«ä¿®æ£ãããFastImageã䜿çšããŠãããå æããããšãã§ããŸããïŒå£ããŠãããããçŸåš0.63ã«ã¢ããã°ã¬ãŒãã§ããŸããïŒä»ã®ä»äºãç§ã¯æçµçã«ææ°ããŒãžã§ã³ã«ç§»åããŸãïŒ
ç§ã®å Žåããã¬ãŒã³RNããã®ã¢ãã¡ãŒã·ã§ã³ç»åããããŸããããFastImageã䜿çšããããšãã§ããŸããã
const AnimatedImage = Animated.createAnimatedComponent(FastImage)
<AnimatedImage source={require('....')} />
ãŸãã¯ãä¿®æ£ã€ã¡ãŒãžããã±ãŒãžã§æ©èœããå¿
èŠããããŸããAppcenterïŒ@ krisbaum74ïŒã§æ©èœããªãå Žåã¯ããªããžããªã®ã«ãŒãã«appcenter-pre-build.sh
ãäœæããä¿®æ£ãå«ãã¹ã¯ãªãããè¿œå ããããšã§åãããšãã§ããã¯ãã§ããããã®
ç§ã¯react-native0.63.3ã䜿çšããŠããŸãããiOS14.1ã§ããã®åé¡ã«çŽé¢ããŠããŸãã ããã¯ãã®ããŒãžã§ã³ã§ãã§ã«é©çšãããŠããŸãã ãããä¿®æ£ããæ¹æ³ã«ã€ããŠäœãã¢ã€ãã¢ã¯ãããŸããïŒ
ç§ã¯react-native0.63.3ã䜿çšããŠããŸãããiOS14.1ã§ããã®åé¡ã«çŽé¢ããŠããŸãã ããã¯ãã®ããŒãžã§ã³ã§ãã§ã«é©çšãããŠããŸãã ãããä¿®æ£ããæ¹æ³ã«ã€ããŠäœãã¢ã€ãã¢ã¯ãããŸããïŒ
0.63.3ã«ã¢ããã°ã¬ãŒãããå Žåããã®ã³ãŒãã§åé¡ãçºçããå¯èœæ§ããããŸãããã®ä¿®æ£ã©ã€ãã©ãªhttps://www.npmjs.com/package/react-native-fix-imageãè©ŠããŠãã ããã
ç§ã¯react-native0.63.3ã䜿çšããŠããŸãããiOS14.1ã§ããã®åé¡ã«çŽé¢ããŠããŸãã ããã¯ãã®ããŒãžã§ã³ã§ãã§ã«é©çšãããŠããŸãã ãããä¿®æ£ããæ¹æ³ã«ã€ããŠäœãã¢ã€ãã¢ã¯ãããŸããïŒ
0.63.3ã«ã¢ããã°ã¬ãŒãããå Žåããã®ã³ãŒãã§åé¡ãçºçããå¯èœæ§ããããŸãããã®ä¿®æ£ã©ã€ãã©ãªhttps://www.npmjs.com/package/react-native-fix-imageãè©ŠããŠãã ããã
ç§ã¯ãã§ã«0.63.3ã«ã¢ããã°ã¬ãŒãããŸãããããã®ã©ã€ãã©ãªã¯åé¡ã解決ããŸããïŒç»åã¯ã·ãã¥ã¬ãŒã¿ã«ããŒããããŸãããç©çããã€ã¹ã«ã¯ããŒããããŸããã
ç§ã¯react-native0.63.3ã䜿çšããŠããŸãããiOS14.1ã§ããã®åé¡ã«çŽé¢ããŠããŸãã ããã¯ãã®ããŒãžã§ã³ã§ãã§ã«é©çšãããŠããŸãã ãããä¿®æ£ããæ¹æ³ã«ã€ããŠäœãã¢ã€ãã¢ã¯ãããŸããïŒ
0.63.3ã«ã¢ããã°ã¬ãŒãããå Žåããã®ã³ãŒãã§åé¡ãçºçããå¯èœæ§ããããŸãããã®ä¿®æ£ã©ã€ãã©ãªhttps://www.npmjs.com/package/react-native-fix-imageãè©ŠããŠãã ããã
ç§ã¯ãã§ã«0.63.3ã«ã¢ããã°ã¬ãŒãããŸãããããã®ã©ã€ãã©ãªã¯åé¡ã解決ããŸããïŒç»åã¯ã·ãã¥ã¬ãŒã¿ã«ããŒããããŸãããç©çããã€ã¹ã«ã¯ããŒããããŸããã
ç§ã®åé¡ã¯ãæ¬çªãã«ãã®ã¢ã»ããã®ã³ããŒã«é¢é£ããŠããŸãããããã§èª¬æãããŠããããã«ãªã³ã¯ã«åé¡ãããããã³ãã«ãåçæããŠåè©Šè¡ããŠãã ãã
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸã
ã©ããããããšãïŒïŒïŒïŒ ããªãã¯æåéãç§ã®æ¥ãæã£ãðâ€ïž
_currentFrameãnilã®å Žåã
[super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸãç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; } else { [super displayLayer:layer]; }
ç§ã®ããã«åãã!!! ð
ãŸãã0.63.3ã«ã¢ããã°ã¬ãŒãããiOS14ã§ãã®åé¡ã«çŽé¢ããŠããŸãã
RN-fetch-blobããã±ãŒãžã䜿çšããŠãã¡ã€ã«ïŒãã®äžã®ç»åïŒãããŠã³ããŒãããImageã³ã³ããŒãã³ãã䜿çšããŠãããã®ããŒã«ã«ç»åãããŒãããŸãã
@ krisbaum74
ãããä¿®æ£ããããã®MicrosoftAppCenterãã«ãã¹ã¯ãªãããæã£ãŠãã人ã¯ããªããšæããŸããïŒ
react-native+0.63.0.patch
ã䜿çšããdiff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m index 21f1a06..2444713 100644 --- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m @@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink - (void)displayLayer:(CALayer *)layer { + if (!_currentFrame) { + _currentFrame = self.image; + } if (_currentFrame) { layer.contentsScale = self.animatedImageScale; layer.contents = (__bridge id)_currentFrame.CGImage; diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env new file mode 100644 index 0000000..361f5fb --- /dev/null +++ b/node_modules/react-native/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081
ãããããã±ãŒãžã䜿çšããŠãããé©çšããã«ã¯ã©ãããã°ããã§ããïŒ ãããããã±ãŒãžã®äœ¿çšããå§ããŸãã
ããïŒ
1.-ãnpmi-gpatch-packageããå®è¡ããŸã
2.-ããããšåŒã°ããæ°ãããã©ã«ããäœæããŸã
3.-ãã®ãã©ã«ããŒå ã«react-native+0.63.0.patchãšããååã®æ°ãããã¡ã€ã«ãäœæããŸã
4.-äžèšã®ãœãŒã¹ã³ãŒããè¿œå ããŸãã
5.-ãããžã§ã¯ãã®ã«ãŒãã§ãpatch-packageããå®è¡ããŸã
äžèšã®ä¿®æ£ã«åŸã£ãŠããã¡ã€ã«ãreact-native+0.63.0.patchã«ããŸãã
ãã®åŸãappcenter-pre-build.shã«è¿œå ããŸã
npmi-gãããããã±ãŒãž
ãããããã±ãŒãž
ããã«ãããAppCenterãã«ãã«äžèšã®ä¿®æ£ãè¿œå ãããŸãã
ç§ã¯ãããiOSã§äœ¿çšããnpxã®react-native-fix-imageã䜿çšããŸããã ä»ãç§ã¯åé¡ãAndroidã§ç¶ãããšã«å€±æããŠããŸãïŒ
ããã§ã¯Androidã«ã€ããŠã¯è§ŠããŠããŸãã-ç§ã ãã§ããïŒ
ç§ã¯ãreact-nativeããæºãã¶ã£ãŠããŸãïŒã0.61.5ã
_const Image = Animatable.createAnimatableComponentïŒFastImageïŒ; _
æ£åžžã«åäœããŠããŸããïŒ
Animation={'bounceIn'}ãæ©èœããŠããŸãã
"react-native"ïŒ "0.63.3"
"react-native-fast-image"ïŒ "^ 8.3.4"
"react-native-animatable"ïŒ "^ 1.3.3"
ããã¯0.63ã®ããããšèŠãªãããŸããã0.62ã§ãæ©èœããããšã確èªã§ããŸãã ð
ããã§ãIOS14.2ãXcode 12.2ãreact-native0.63.4ã§ã¯æ©èœããŸãã
ææ¡ãããä¿®æ£ã¯åœ¹ã«ç«ã¡ãŸãã
ã¢ããããŒã
0.63.4-åé¡ãªãããããªãã®ãªã¢ãŒãã€ã¡ãŒãžã衚瀺ããŸãããããŒã«ã«ã€ã¡ãŒãžã¯ããããããŸãã¯ããããªãã§ã¯æ©èœããŸãã
ç§ã¯react-native0.63.3ã®ãããžã§ã¯ããæã£ãŠããŸãããããããæ©èœããŸããã ããããé©çšããåã«ãã¯ã©ã¹RCTUIImageViewAnimatedã確èªããŸãããããã§ã«ãããã³ãŒããå«ãŸããŠããŸããããã¯ãïŒ29420ãå€æŽã«åŸã£ãŠ0.63.3ã«æ¢ã«ããŒãžãããŠããããã§ãã0.63.2CHANGELOG https://github.com/react-native-ã³ãã¥ããã£/ãªãªãŒã¹/blob/master/CHANGELOG.md#v0632ã ãããã£ãŠããããã¯ãããä¿®æ£ããŸããã0.62.2ã§æå¹ã ã£ããšæããŸããã0.63.3ã§ã®å€æŽã«ããã_local_ã€ã¡ãŒãžã®èªã¿èŸŒã¿ãåã³äžæãããã®ã§ã¯ãªãããšæããŸãã ããããäžéšã®éçºè ã0.63.2æªæºã«ããŠã³ã°ã¬ãŒãããŠããããé©çšãããšãã€ã¡ãŒãžãåã³è¡šç€ºãããçç±ã説æããŠããŸãã ä¿®æ£ãå«ã0.63.2ãå ¥æãããã ãã§ãã ãããã«ãããç§ã¯ããŠã³ã°ã¬ãŒãããããšãèºèºããŠããŸããéå»ã«è¡ãè©°ãŸããããªãã®ã§ã1ã€ã®ããŒãžã§ã³ã«æ»ã£ãŠãããã§ã;-)ã ç§ã¯èªåã®åŽã§æ©èœããŠããåé¿çãäœæããŸããã
_me_ã®å Žåã_external_ URLïŒRN 0.63.3ïŒã䜿çšãããšç»åãèªã¿èŸŒãŸãããšããäºå®ã«åºã¥ããŠããŸãã
ç§ã®åé¿çã
<Image
source={{ uri: 'app_icon' }}
style={{ width: 40, height: 40 }}
/>
ããã¯ïŒç§ã«ãšã£ãŠã¯ïŒæ©èœããŠããŸãããæ¬ ç¹ã¯
ããã«é¢ãã@RutsSantosãç§ã®ããã«åããïŒ
- npm install --savereact-native-fix-image
- npxreact-native-fix-image
- ãããžã§ã¯ããåæ§ç¯ãã
ç§ã®ããã«åããððððð
RN0.61ã§ã¯æ©èœããŸããã§ãã
ç§ã¯RN0.61ã䜿çšããŠããŸãããã©ã®ãœãªã¥ãŒã·ã§ã³ãæ©èœããŸããã plsãä»ã«è§£æ±ºçã¯ãããŸããïŒ
ç§ã¯RN0.61ã䜿çšããŠããŸãããã©ã®ãœãªã¥ãŒã·ã§ã³ãæ©èœããŸããã plsãä»ã«è§£æ±ºçã¯ãããŸããïŒ
https://www.npmjs.com/package/react-native-fix-image
ç§ã®ãã®ã©ã€ãã©ãªã¯ãRN0.61ã§ãæ£åžžã«åäœããŸã
ç§ã¯RN0.61ã䜿çšããŠããŸãããã©ã®ãœãªã¥ãŒã·ã§ã³ãæ©èœããŸããã plsãä»ã«è§£æ±ºçã¯ãããŸããïŒ
https://www.npmjs.com/package/react-native-fix-image
ç§ã®ãã®ã©ã€ãã©ãªã¯ãRN0.61ã§ãæ£åžžã«åäœããŸã
ããã«ã¡ã¯ãã€ãç§ã¯äžèšã®ã¬ã€ããšããŠæ®µéçã«è©ŠããŠã¿ãŸãããããã¯ä¿®æ£ç»åãå®äºããããšã瀺ããŸããã ãã ããç»åã¯iOS14ã§ã¯ãŸã 衚瀺ãããŸãããä»ã®iOSããŒãžã§ã³ã§ãç»åã¯æ£åžžã«è¡šç€ºãããŸãã
ç§ã¯RN0.61ãšios14ã䜿çšããŠããŸãã
æãåèã«ãªãã³ã¡ã³ã
_currentFrameãnilã®å Žåã
[super displayLayer:layer];
ãè¿œå ããåŸã«ç»åã衚瀺ã§ããŸãç§ãæ£ããç解ããŠããã°ã_currentFrameã¯ã¢ãã¡ãŒã·ã§ã³ç»åçšã§ããã¯ããªã®ã§ãéæ¢ç»åã®å Žåã¯ãUIImageå®è£ ã䜿çšããŠç»åã¬ã³ããªã³ã°ãåŠçã§ããŸããããããæ£ããä¿®æ£ã§ãããã©ããã¯ããããŸããã
https://github.com/facebook/react-native/blob/1c634a921887caf02f1b9fba6fd177c352f9ef78/Libraries/Image/RCTUIImageViewAnimated.m#L283 -L289