Skip to content

Commit

Permalink
delete isWebpGif resizeWidth imgStyleHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
renzhenhua-good-boy committed Nov 25, 2023
1 parent cc07770 commit 429f86f
Show file tree
Hide file tree
Showing 3 changed files with 9,514 additions and 10,223 deletions.
Binary file modified harmony/fast_image.har
Binary file not shown.
6 changes: 3 additions & 3 deletions harmony/fast_image/src/main/cpp/Props.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static inline std::string getHeaders(const PropsParserContext& context, const Ra
std::string itemValue;
headers = "{";
for (auto iter = map.begin(); iter != map.end(); iter++) {
fromRawValue(context, iter->second, itemVaule);
fromRawValue(context, iter->second, itemValue);
if (iter != map.begin()) {
headers += ",";
}
Expand All @@ -52,7 +52,7 @@ static inline void fromRawValue(const PropsParserContext& context,
}
auto tmp_headers = map.find("headers");
if (tmp_headers != map.end()) {
result.headers = getHeaders(context, tmp_headers->second)
result.headers = getHeaders(context, tmp_headers->second);
}
auto tmp_priority = map.find("priority");
if (tmp_priority != map.end()) {
Expand All @@ -73,7 +73,7 @@ enum class ResizeMode {
inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ResizeMode &result)
{
react_native_expect(value.hasType<std::string>());
if (!value.hasType<std::string>) {
if (!value.hasType<std::string>()) {
LOG(ERROR) << "Unsupported ResizeMode type";
result = ResizeMode::COVER;
return;
Expand Down
Loading

0 comments on commit 429f86f

Please sign in to comment.