Skip to content

Commit

Permalink
fix(ios): ensure insertHippySubview is called sequentially
Browse files Browse the repository at this point in the history
Some businesses depend on the invocation order of the insertHippySubview method,
so we use std::map instead to ensure that the view created first calls that method first
  • Loading branch information
wwwcg committed Mar 21, 2024
1 parent 9a76f96 commit d084dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/native/ios/renderer/HippyUIManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
return viewName;
}

using HPViewBinding = std::unordered_map<int32_t, std::tuple<std::vector<int32_t>, std::vector<int32_t>>>;
using HPViewBinding = std::map<int32_t, std::tuple<std::vector<int32_t>, std::vector<int32_t>>>;

constexpr char kVSyncKey[] = "frameupdate";

Expand Down

0 comments on commit d084dd3

Please sign in to comment.