# Summary

On `react-native-macos` 0.76, `UIGraphicsBeginImageContextWithOptions`
and some other UIGraphics directives were removed so the temporary
solution is to copy the removed functions here.

More details
here https://github.com/software-mansion/react-native-svg/issues/2528
and here https://github.com/microsoft/react-native-macos/pull/2209

Closes #2528

## Test Plan

Built the `fabric-macos-example` for with `react-native-macos@0.76.0`

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| MacOS   |          |

## Checklist

- [x] I have tested this on a device and a simulator
This commit is contained in:
Jakub Grzywacz
2024-11-13 12:30:05 +01:00
committed by GitHub
parent d0530e4b9f
commit 1256d561df
19 changed files with 2965 additions and 2131 deletions
+16 -16
View File
@@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"macos": "react-native run-macos",
"macos": "@react-native-community/cli run-macos",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
@@ -14,32 +14,32 @@
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.4.1",
"react": "18.2.0",
"react-native": "0.73.4",
"react": "18.3.1",
"react-native": "0.76.1",
"react-native-gesture-handler": "https://github.com/software-mansion/react-native-gesture-handler",
"react-native-macos": "^0.73.0-0",
"react-native-reanimated": "3.9.0",
"react-native-macos": "^0.76.0",
"react-native-reanimated": "^3.16.1",
"react-native-svg": "link:../../"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.0.0",
"@react-native/babel-preset": "0.73.21",
"@react-native/eslint-config": "0.73.2",
"@react-native/metro-config": "^0.74.84",
"@react-native/typescript-config": "0.73.1",
"@tsconfig/react-native": "^2.0.2",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "15.0.0",
"@react-native-community/cli-platform-android": "15.0.0",
"@react-native-community/cli-platform-ios": "15.0.0",
"@react-native/babel-preset": "0.76.1",
"@react-native/eslint-config": "0.76.1",
"@react-native/metro-config": "0.76.1",
"@react-native/typescript-config": "0.76.1",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"metro-react-native-babel-preset": "0.73.5",
"patch-package": "^8.0.0",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {