Skip to content

Commit 665bd9b

Browse files
authored
feat: use latest brownfield with fixes for 0.81+ on Android (#624)
* feat: use latest brownfield with fixes for 0.81+ on Android * changeset * add note * use table
1 parent 471c5e7 commit 665bd9b

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

.changeset/funny-bears-roll.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rock-js/plugin-brownfield-android': patch
3+
'@rock-js/plugin-brownfield-ios': patch
4+
---
5+
6+
feat: use latest brownfield with fixes for 0.81+ on Android

packages/plugin-brownfield-android/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"publish-local:aar": "pnpm package:aar && rock publish-local:aar --module-name helloworldreact"
66
},
77
"dependencies": {
8-
"@callstack/react-native-brownfield": "^1.2.0"
8+
"@callstack/react-native-brownfield": "^2.0.0"
99
},
1010
"devDependencies": {
1111
"@rock-js/plugin-brownfield-android": "^0.11.9"

packages/plugin-brownfield-ios/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"package:ios": "rock package:ios --scheme HelloWorldReact --configuration Release"
55
},
66
"dependencies": {
7-
"@callstack/react-native-brownfield": "^1.2.0"
7+
"@callstack/react-native-brownfield": "^2.0.0"
88
},
99
"devDependencies": {
1010
"@rock-js/plugin-brownfield-ios": "^0.11.9"

website/src/docs/brownfield/android.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ Here we add the `react-native-brownfield` library to help us with APIs required
101101

102102
<PackageManagerTabs command="install @callstack/react-native-brownfield" />
103103

104+
**Compatibility Matrix**
105+
106+
| React Native Version | `@callstack/react-native-brownfield` Version |
107+
| -------------------- | -------------------------------------------- |
108+
| 0.81+ | v2 (latest) |
109+
| < 0.81 | v1.2.0 |
110+
111+
Our default brownfield template uses the latest version of `@callstack/react-native-brownfield` (currently v2).
112+
104113
### 5. Create React Native Host Manager
105114

106115
Create a new file called `ReactNativeHostManager.kt` in your `reactnativeapp` module:

0 commit comments

Comments
 (0)