Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/getting-started/minimum-requirements.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description: Check the React Native, iOS, Android, and Swift requirements needed to use Nitro Modules.
description: Check the React Native, iOS/macOS/tvOS/visionOS, Android, and environment requirements needed to use Nitro Modules.
---

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Expand All @@ -10,7 +10,7 @@ Nitro V1's React Native package requires React Native 0.88 or newer with the New

<Tabs groupId="platform">
<TabItem value="ios" label="iOS" default>
- iOS 16 or higher
- iOS 16, macOS 13, tvOS 16 or visionOS 1 or higher
- Xcode with Swift 6.4 or higher
- Swift Package Manager integration (`npx react-native spm`)

Expand Down
2 changes: 1 addition & 1 deletion packages/nitro-core/native/apple/utils/StringUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public final class StringUtils {
}
return
}
if #available(iOS 26.0, macOS 26.0, *) {
if #available(iOS 26.0, macOS 26.0, tvOS 26.0, visionOS 26.0, *) {
let utf8 = value.utf8Span
utf8.span.withUnsafeBufferPointer { bytes in
if utf8.isKnownASCII {
Expand Down
3 changes: 3 additions & 0 deletions packages/react-native-nitro-modules/NitroModules.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ Pod::Spec.new do |s|
s.authors = package["author"]
s.source = { :git => "https://github.com/margelo/nitro.git", :tag => "v#{s.version}" }
s.ios.deployment_target = "16.0"
s.osx.deployment_target = "13.0"
s.tvos.deployment_target = "16.0"
s.visionos.deployment_target = "1.0"
end
2 changes: 1 addition & 1 deletion packages/react-native-nitro-modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let cxxSettings: [CXXSetting] = [

let package = Package(
name: "NitroModules",
platforms: [.iOS(.v16)],
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .visionOS(.v1)],
products: [
.library(
name: "NitroModules",
Expand Down
3 changes: 3 additions & 0 deletions packages/template/$$iosModuleName$$.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ Pod::Spec.new do |s|
s.authors = package["author"]
s.source = { :git => "https://github.com/margelo/nitro.git", :tag => "v#{s.version}" }
s.ios.deployment_target = "16.0"
s.osx.deployment_target = "13.0"
s.tvos.deployment_target = "16.0"
s.visionos.deployment_target = "1.0"
end
2 changes: 1 addition & 1 deletion packages/template/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription

let package = Package(
name: "$$iosModuleName$$",
platforms: [.iOS(.v16)]
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .visionOS(.v1)]
)

// Nitrogen generates the native targets below when you run npm run specs.
Expand Down
Loading