@react-native-oh/react-native-harmony 0.72.53 → 0.72.67

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.
@@ -380,7 +380,7 @@ class Button extends React.Component<ButtonProps> {
380
380
  disabled={disabled}
381
381
  onPress={onPress}
382
382
  touchSoundDisabled={touchSoundDisabled}>
383
- <View style={buttonStyles}>
383
+ <View style={buttonStyles} focusable={false}>
384
384
  <Text style={textStyles} disabled={disabled}>
385
385
  {formattedTitle}
386
386
  </Text>
@@ -31,14 +31,20 @@ class AssetSourceResolver {
31
31
  return !!this.serverUrl;
32
32
  }
33
33
 
34
+ isLoadedFromFileSystem(): boolean {
35
+ return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://'));
36
+ }
37
+
34
38
  public defaultAsset(): ResolvedAssetSource {
35
39
  if (this.isLoadedFromServer()) {
36
40
  return this.assetServerURL();
37
41
  }
38
42
 
43
+ const prefix = this.isLoadedFromFileSystem() ? this.jsbundleUrl : 'asset://';
44
+
39
45
  return {
40
46
  __packager_asset: this.asset.__packager_asset,
41
- uri: `asset://${getAssetDestRelativePath(this.asset)}`,
47
+ uri: `${prefix}${getAssetDestRelativePath(this.asset)}`,
42
48
  scale: 1,
43
49
  width: this.asset.width,
44
50
  height: this.asset.height,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-oh/react-native-harmony",
3
- "version": "0.72.53",
3
+ "version": "0.72.67",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -58,9 +58,9 @@
58
58
  "harmony": {
59
59
  "autolinking": null
60
60
  },
61
- "homepage": "https://gitee.com/openharmony-sig/ohos_react_native",
61
+ "homepage": "https://gitcode.com/openharmony-sig/ohos_react_native",
62
62
  "repository": {
63
- "type": "gitee",
64
- "url": "https://gitee.com/openharmony-sig/ohos_react_native"
63
+ "type": "gitcode",
64
+ "url": "https://gitcode.com/openharmony-sig/ohos_react_native"
65
65
  }
66
66
  }
Binary file