@react-native-ohos/react-native-blurhash 2.0.4-rc.1 → 2.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Use these variables when you tailor your ArkTS code. They must be of the const type.
3
3
  */
4
- export const HAR_VERSION = '2.0.3-0.0.2';
4
+ export const HAR_VERSION = '2.1.0-rc.1';
5
5
  export const BUILD_MODE_NAME = 'debug';
6
6
  export const DEBUG = true;
7
7
  export const TARGET_NAME = 'default';
@@ -5,7 +5,7 @@
5
5
  description: '',
6
6
  main: 'index.ets',
7
7
  type: 'module',
8
- version: '2.0.4-rc.1',
8
+ version: '2.1.0-rc.1',
9
9
  dependencies: {
10
10
  "@rnoh/react-native-openharmony": 'file:../react_native_openharmony',
11
11
  "librnoh_blurhash.so": "file:./src/main/cpp/types/libblurhash"
@@ -164,7 +164,7 @@ std::vector<float> bases_for(size_t dimension, size_t components) {
164
164
 
165
165
  } // namespace
166
166
  namespace blurhash {
167
- std::string path = "/data/storage/el2/base/haps/entry/cache/";
167
+ std::string path = "/data/storage/el2/base/haps/entry/cache/rn_image_cache/";
168
168
  /**
169
169
  * @brief 解码Blurhash为图像
170
170
  * @param blurhash 待解码的Blurhash字符串
@@ -61,7 +61,7 @@ void BlurhashViewComponentInstance::onPropsChanged(SharedConcreteProps const &pr
61
61
  // If filePath is an absolute path, use it as-is; otherwise prefix cache dir
62
62
  std::string absPath = filePath;
63
63
  if (!(absPath.rfind("/", 0) == 0)) {
64
- absPath = "/data/storage/el2/base/haps/entry/cache/" + absPath;
64
+ absPath = "/data/storage/el2/base/haps/entry/cache/rn_image_cache/" + absPath;
65
65
  }
66
66
 
67
67
  const char *path = absPath.c_str();
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-blurhash",
3
3
  "title": "React Native Blurhash",
4
- "version": "2.0.4-rc.1",
4
+ "version": "2.1.0-rc.1",
5
5
  "description": "🖼 Blurhash is a compact representation of a placeholder for an image. This is a Native UI Module for React Native to asynchronously wrap the Blurhash implementations and make them usable in React Native. Also supports encoding!",
6
6
  "main": "lib/commonjs/index.js",
7
7
  "types": "lib/typescript/index.d.ts",