Skip to content

Commit

Permalink
RN 피쳐 플래그 추가 (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
shp7724 authored Dec 5, 2023
1 parent 1cd339f commit efef074
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SNUTT-2022/SNUTT/Views/Scenes/FriendsScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,16 @@ struct RNFriendsView: UIViewRepresentable {
let colorScheme: ColorScheme
private let moduleName = "friends"

private enum RNFeature: String, CaseIterable {
case ASYNC_STORAGE
}

private var initialProps: [String: Any] {
var props: [String: Any] = AppMetadata.asDictionary()
props["x-access-token"] = accessToken
props["theme"] = colorScheme.description
props["allowFontScaling"] = false
props["feature"] = RNFeature.allCases.map { $0.rawValue }
return props
}

Expand Down

0 comments on commit efef074

Please sign in to comment.