Closed ng-ha closed 3 months ago
@ng-ha
create-react-native-library
.
@duguyihou
<TurboImage
source={{
uri: 'http://littlesvr.ca/apng/images/clock.png',
}}
style={{width: 300, height: 300}}
format="apng"
/>
<TurboImage
source={{
uri: 'http://littlesvr.ca/apng/images/o_sample.png',
}}
style={{width: 300, height: 300}}
format="apng"
/>
@ng-ha
It shows nothing on my end. I don't know what the difference among these images. Only elephant shows. I will try to fix it. Thanks for raising this.
FYI, TurboImage supports apng
by using third party library(APNG). If I cannot fix it, will remove it.
@ng-ha
seems it is related to image url. It cannot download it as it starts with http
instead of https
https://github.com/user-attachments/assets/7c38f39e-68d7-4880-9219-fe91b71e63a9
Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://littlesvr.ca/apng/images/clock.png, NSErrorFailingURLKey=http://littlesvr.ca/apng/images/clock.png, _NSURLErrorRelatedURLSessionTaskErrorKey=(
@duguyihou
Oh my bad. It makes sense. I tried download it, try render it by require
and it does work. Thank you for checking!
@duguyihou
Btw, about 4. I'm using yarn 3.6.4 (default package manager in RN 0.74.3). It seems prepare
no longer used in yarn version 3: https://github.com/yarnpkg/berry/issues/957 https://yarnpkg.com/advanced/lifecycle-scripts. So i changed prepare
to prepack
and it worked.
It's my problem since Im forking this project and using it directly by github url. Yours is published through npm so yours is fine!
Describe the bug
file APNG, GIF not working in both Android, IOS if not specified
format
. Can the library automatically detect the decoder?File APNG not working in IOS, event with
format
specified. On Android it works as expected.Can the library support to work with react-native-color-matrix-image-filters ? I tried, it works well in Android. But in IOS, it didn't work.
Seems like those properties in package.json configured wrong because there is no folder
lib
. It makes the module not found by the IDE on my side.Wrong:
Correct: