Update Apple Native Module naming convention (MSF -> FRN) (#899)
* MSF -> FRN, podspec and podfile updates * enable nuget publish * more podfile / podspec renames * some things I forgot to rename * Change files * more renaming * more fixes * Update package.nuspec * Comment out NuGet Publish
This commit is contained in:
Родитель
a22d4f8df2
Коммит
2b95227026
|
@ -138,7 +138,7 @@ To add a native module that wraps a FluentUI Apple control:
|
|||
- We specify `MicrosoftFluentUI` as dependency, which ensures the source code for FluentUI Apple is pulled in while compiling this component. Consider using a subspec (i.e `MicrosoftFluentUI/Avatar_ios`) if possible.
|
||||
1. Create the `ios/` and `macos/` subdirectories (whichever platforms you need) in your components directory
|
||||
1. Inside each new directory you just created, you will have at a minimum of 3 files (2 if you skip Swift and only use objective c)
|
||||
1. `MSF<new-component>ViewManager.h / m`
|
||||
1. `FRN<new-component>ViewManager.h / m`
|
||||
- This is the Objective-C file needed because Swift does not support macros and React Native requires them to map JS props to the native properties of the control. (Macros like `RCT_EXPORT_VIEW_PROPERTY` and `RCT_EXPORT_METHOD`). The .h file should at the minumum import `<React/RCTViewManager.h>`
|
||||
1. `<new-component>ViewManager.swift`
|
||||
- This Swift file imports FluentUI Apple, and creates a subclass of RCTViewManager to instantiate and return your FluentUI Apple control. Objective-C methods like `requiresMainQueueSetup` and `constantsToExport` can be overridden here. It's important to note that in order for properties and methods to be available to React Native, they must add the `@objc` decorator to it's declaration.
|
||||
|
@ -167,8 +167,8 @@ To add a native Windows module:
|
|||
4. Start metro via command line
|
||||
- Navigate to windows folder (`packages\experimental\<new-component>\windows`)
|
||||
- Run `yarn start`
|
||||
5. Run application
|
||||
|
||||
5. Run application
|
||||
|
||||
## Creating a pull request
|
||||
|
||||
Thanks for your interest in contributing to the fluentui-react-native! We welcome all contributions. Here's information on how to prepare your change for a pull request.
|
||||
|
|
|
@ -24,9 +24,9 @@ use_test_app! do |target|
|
|||
target.app do
|
||||
platform :ios, '13.0'
|
||||
|
||||
pod 'FluentUI-React-Native-Avatar', :path => '../../../packages/experimental/Avatar/FluentUIReactNativeAvatar.podspec'
|
||||
pod 'FluentUI-React-Native-Button', :path => '../../../packages/experimental/NativeButton/FluentUIReactNativeButton.podspec'
|
||||
pod 'FluentUI-React-Native-Date-Picker', :path => '../../../packages/experimental/NativeDatePicker/FluentUIReactNativeDatePicker.podspec'
|
||||
pod 'FRNAvatar', :path => '../../../packages/experimental/Avatar/FRNAvatar.podspec'
|
||||
pod 'FRNButton', :path => '../../../packages/experimental/NativeButton/FRNButton.podspec'
|
||||
pod 'FRNDatePicker', :path => '../../../packages/experimental/NativeDatePicker/FRNDatePicker.podspec'
|
||||
pod 'react-native-menu', :path => '../../../node_modules/@react-native-menu/menu'
|
||||
pod 'RNSVG', :path => '../../../node_modules/react-native-svg'
|
||||
pod 'react-native-slider', :path => '../../../node_modules/@react-native-community/slider'
|
||||
|
|
|
@ -9,16 +9,6 @@ PODS:
|
|||
- React-Core (= 0.63.4)
|
||||
- React-jsi (= 0.63.4)
|
||||
- ReactCommon/turbomodule/core (= 0.63.4)
|
||||
- FluentUI-React-Native-Avatar (0.11.6):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- MicrosoftFluentUI/Avatar_ios (= 0.3.0)
|
||||
- React
|
||||
- FluentUI-React-Native-Button (0.7.9):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- React
|
||||
- FluentUI-React-Native-Date-Picker (0.3.2):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- React
|
||||
- Folly (2020.01.13.00):
|
||||
- boost-for-react-native
|
||||
- DoubleConversion
|
||||
|
@ -28,6 +18,16 @@ PODS:
|
|||
- boost-for-react-native
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- FRNAvatar (0.11.8):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- MicrosoftFluentUI/Avatar_ios (= 0.3.0)
|
||||
- React
|
||||
- FRNButton (0.7.11):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- React
|
||||
- FRNDatePicker (0.3.3):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- React
|
||||
- glog (0.3.5)
|
||||
- MicrosoftFluentUI (0.3.0):
|
||||
- MicrosoftFluentUI/ActivityIndicator_ios (= 0.3.0)
|
||||
|
@ -426,10 +426,10 @@ DEPENDENCIES:
|
|||
- DoubleConversion (from `../../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
||||
- FBLazyVector (from `../../../node_modules/react-native/Libraries/FBLazyVector`)
|
||||
- FBReactNativeSpec (from `../../../node_modules/react-native/Libraries/FBReactNativeSpec`)
|
||||
- FluentUI-React-Native-Avatar (from `../../../packages/experimental/Avatar/FluentUIReactNativeAvatar.podspec`)
|
||||
- FluentUI-React-Native-Button (from `../../../packages/experimental/NativeButton/FluentUIReactNativeButton.podspec`)
|
||||
- FluentUI-React-Native-Date-Picker (from `../../../packages/experimental/NativeDatePicker/FluentUIReactNativeDatePicker.podspec`)
|
||||
- Folly (from `../../../node_modules/react-native/third-party-podspecs/Folly.podspec`)
|
||||
- FRNAvatar (from `../../../packages/experimental/Avatar/FRNAvatar.podspec`)
|
||||
- FRNButton (from `../../../packages/experimental/NativeButton/FRNButton.podspec`)
|
||||
- FRNDatePicker (from `../../../packages/experimental/NativeDatePicker/FRNDatePicker.podspec`)
|
||||
- glog (from `../../../node_modules/react-native/third-party-podspecs/glog.podspec`)
|
||||
- QRCodeReader.swift
|
||||
- RCTRequired (from `../../../node_modules/react-native/Libraries/RCTRequired`)
|
||||
|
@ -476,14 +476,14 @@ EXTERNAL SOURCES:
|
|||
:path: "../../../node_modules/react-native/Libraries/FBLazyVector"
|
||||
FBReactNativeSpec:
|
||||
:path: "../../../node_modules/react-native/Libraries/FBReactNativeSpec"
|
||||
FluentUI-React-Native-Avatar:
|
||||
:path: "../../../packages/experimental/Avatar/FluentUIReactNativeAvatar.podspec"
|
||||
FluentUI-React-Native-Button:
|
||||
:path: "../../../packages/experimental/NativeButton/FluentUIReactNativeButton.podspec"
|
||||
FluentUI-React-Native-Date-Picker:
|
||||
:path: "../../../packages/experimental/NativeDatePicker/FluentUIReactNativeDatePicker.podspec"
|
||||
Folly:
|
||||
:podspec: "../../../node_modules/react-native/third-party-podspecs/Folly.podspec"
|
||||
FRNAvatar:
|
||||
:path: "../../../packages/experimental/Avatar/FRNAvatar.podspec"
|
||||
FRNButton:
|
||||
:path: "../../../packages/experimental/NativeButton/FRNButton.podspec"
|
||||
FRNDatePicker:
|
||||
:path: "../../../packages/experimental/NativeDatePicker/FRNDatePicker.podspec"
|
||||
glog:
|
||||
:podspec: "../../../node_modules/react-native/third-party-podspecs/glog.podspec"
|
||||
RCTRequired:
|
||||
|
@ -544,10 +544,10 @@ SPEC CHECKSUMS:
|
|||
DoubleConversion: cde416483dac037923206447da6e1454df403714
|
||||
FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e
|
||||
FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e
|
||||
FluentUI-React-Native-Avatar: 0b3a0c223c23b0e969044e7e655f18df456619c1
|
||||
FluentUI-React-Native-Button: 2884887e9f2f2ff0f74321ea4200f469b22c2600
|
||||
FluentUI-React-Native-Date-Picker: e860bff4bf7c6bc69447e36382d836cd70c5500e
|
||||
Folly: b73c3869541e86821df3c387eb0af5f65addfab4
|
||||
FRNAvatar: b2477748ea17a77744a7dec855a73b2c84f22771
|
||||
FRNButton: aec4eca5f1a963042cdb472bf04881f39191934d
|
||||
FRNDatePicker: ff7848325d64fd87d731795401e41263c5da69e1
|
||||
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
|
||||
MicrosoftFluentUI: b98d877a2122804132365aa167944f58ef4adb69
|
||||
QRCodeReader.swift: 373a389fe9a22d513c879a32a6f647c58f4ef572
|
||||
|
@ -579,6 +579,6 @@ SPEC CHECKSUMS:
|
|||
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52
|
||||
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
|
||||
|
||||
PODFILE CHECKSUM: 31571d5ec37b56ac776b1881c6312a1cb1860de1
|
||||
PODFILE CHECKSUM: bcebab1599979f3beb71af26698524d24cb9f19e
|
||||
|
||||
COCOAPODS: 1.10.2
|
||||
|
|
|
@ -24,11 +24,11 @@ use_test_app! do |target|
|
|||
target.app do
|
||||
platform :osx, '10.14'
|
||||
|
||||
pod 'FluentUI-React-Native-Avatar', :path => '../../../packages/experimental/Avatar/FluentUIReactNativeAvatar.podspec'
|
||||
pod 'FluentUI-React-Native-Button', :path => '../../../packages/experimental/NativeButton/FluentUIReactNativeButton.podspec'
|
||||
pod 'FluentUI-React-Native-FocusZone', :path => '../../../packages/components/FocusZone/FluentUIReactNativeFocusZone.podspec'
|
||||
pod 'FluentUI-React-Native-MenuButton', :path => '../../../packages/components/MenuButton/FluentUIReactNativeMenuButton.podspec'
|
||||
pod 'FluentUI-React-Native-Radio-Button', :path => '../../../packages/components/NativeRadioButton/FluentUIReactNativeRadioButton.podspec'
|
||||
pod 'FRNAvatar', :path => '../../../packages/experimental/Avatar/FRNAvatar.podspec'
|
||||
pod 'FRNButton', :path => '../../../packages/experimental/NativeButton/FRNButton.podspec'
|
||||
pod 'FRNMenuButton', :path => '../../../packages/components/MenuButton/FRNMenuButton.podspec'
|
||||
pod 'FRNRadioButton', :path => '../../../packages/components/NativeRadioButton/FRNRadioButton.podspec'
|
||||
pod 'RCTFocusZone', :path => '../../../packages/components/FocusZone/RCTFocusZone.podspec'
|
||||
pod 'RNCPicker', :path => '../../../node_modules/@react-native-picker/picker'
|
||||
pod 'RNSVG', :path => '../../../node_modules/react-native-svg'
|
||||
|
||||
|
|
|
@ -9,18 +9,16 @@ PODS:
|
|||
- React-Core (= 0.63.37)
|
||||
- React-jsi (= 0.63.37)
|
||||
- ReactCommon/turbomodule/core (= 0.63.37)
|
||||
- FluentUI-React-Native-Avatar (0.11.5):
|
||||
- FRNAvatar (0.11.8):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- MicrosoftFluentUI/Avatar_ios (= 0.3.0)
|
||||
- React
|
||||
- FluentUI-React-Native-Button (0.7.8):
|
||||
- FRNButton (0.7.11):
|
||||
- MicrosoftFluentUI (= 0.3.0)
|
||||
- React
|
||||
- FluentUI-React-Native-FocusZone (0.7.7):
|
||||
- FRNMenuButton (0.4.11):
|
||||
- React
|
||||
- FluentUI-React-Native-MenuButton (0.4.8):
|
||||
- React
|
||||
- FluentUI-React-Native-Radio-Button (0.1.8):
|
||||
- FRNRadioButton (0.1.11):
|
||||
- React
|
||||
- glog (0.3.5)
|
||||
- MicrosoftFluentUI (0.3.0):
|
||||
|
@ -95,6 +93,8 @@ PODS:
|
|||
- boost-for-react-native
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- RCTFocusZone (0.7.10):
|
||||
- React
|
||||
- RCTRequired (0.63.37)
|
||||
- RCTTypeSafety (0.63.37):
|
||||
- FBLazyVector (= 0.63.37)
|
||||
|
@ -323,7 +323,7 @@ PODS:
|
|||
- React-jsi (= 0.63.37)
|
||||
- ReactTestApp-DevSupport (0.7.1)
|
||||
- ReactTestApp-Resources (1.0.0-dev)
|
||||
- RNCPicker (1.16.5):
|
||||
- RNCPicker (1.9.11):
|
||||
- React-Core
|
||||
- RNSVG (12.1.1):
|
||||
- React
|
||||
|
@ -335,13 +335,13 @@ DEPENDENCIES:
|
|||
- DoubleConversion (from `../../../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec`)
|
||||
- FBLazyVector (from `../../../node_modules/react-native-macos/Libraries/FBLazyVector`)
|
||||
- FBReactNativeSpec (from `../../../node_modules/react-native-macos/Libraries/FBReactNativeSpec`)
|
||||
- FluentUI-React-Native-Avatar (from `../../../packages/experimental/Avatar/FluentUIReactNativeAvatar.podspec`)
|
||||
- FluentUI-React-Native-Button (from `../../../packages/experimental/NativeButton/FluentUIReactNativeButton.podspec`)
|
||||
- FluentUI-React-Native-FocusZone (from `../../../packages/components/FocusZone/FluentUIReactNativeFocusZone.podspec`)
|
||||
- FluentUI-React-Native-MenuButton (from `../../../packages/components/MenuButton/FluentUIReactNativeMenuButton.podspec`)
|
||||
- FluentUI-React-Native-Radio-Button (from `../../../packages/components/NativeRadioButton/FluentUIReactNativeRadioButton.podspec`)
|
||||
- FRNAvatar (from `../../../packages/experimental/Avatar/FRNAvatar.podspec`)
|
||||
- FRNButton (from `../../../packages/experimental/NativeButton/FRNButton.podspec`)
|
||||
- FRNMenuButton (from `../../../packages/components/MenuButton/FRNMenuButton.podspec`)
|
||||
- FRNRadioButton (from `../../../packages/components/NativeRadioButton/FRNRadioButton.podspec`)
|
||||
- glog (from `../../../node_modules/react-native-macos/third-party-podspecs/glog.podspec`)
|
||||
- RCT-Folly (from `../../../node_modules/react-native-macos/third-party-podspecs/RCT-Folly.podspec`)
|
||||
- RCTFocusZone (from `../../../packages/components/FocusZone/RCTFocusZone.podspec`)
|
||||
- RCTRequired (from `../../../node_modules/react-native-macos/Libraries/RCTRequired`)
|
||||
- RCTTypeSafety (from `../../../node_modules/react-native-macos/Libraries/TypeSafety`)
|
||||
- React (from `../../../node_modules/react-native-macos/`)
|
||||
|
@ -385,20 +385,20 @@ EXTERNAL SOURCES:
|
|||
:path: "../../../node_modules/react-native-macos/Libraries/FBLazyVector"
|
||||
FBReactNativeSpec:
|
||||
:path: "../../../node_modules/react-native-macos/Libraries/FBReactNativeSpec"
|
||||
FluentUI-React-Native-Avatar:
|
||||
:path: "../../../packages/experimental/Avatar/FluentUIReactNativeAvatar.podspec"
|
||||
FluentUI-React-Native-Button:
|
||||
:path: "../../../packages/experimental/NativeButton/FluentUIReactNativeButton.podspec"
|
||||
FluentUI-React-Native-FocusZone:
|
||||
:path: "../../../packages/components/FocusZone/FluentUIReactNativeFocusZone.podspec"
|
||||
FluentUI-React-Native-MenuButton:
|
||||
:path: "../../../packages/components/MenuButton/FluentUIReactNativeMenuButton.podspec"
|
||||
FluentUI-React-Native-Radio-Button:
|
||||
:path: "../../../packages/components/NativeRadioButton/FluentUIReactNativeRadioButton.podspec"
|
||||
FRNAvatar:
|
||||
:path: "../../../packages/experimental/Avatar/FRNAvatar.podspec"
|
||||
FRNButton:
|
||||
:path: "../../../packages/experimental/NativeButton/FRNButton.podspec"
|
||||
FRNMenuButton:
|
||||
:path: "../../../packages/components/MenuButton/FRNMenuButton.podspec"
|
||||
FRNRadioButton:
|
||||
:path: "../../../packages/components/NativeRadioButton/FRNRadioButton.podspec"
|
||||
glog:
|
||||
:podspec: "../../../node_modules/react-native-macos/third-party-podspecs/glog.podspec"
|
||||
RCT-Folly:
|
||||
:podspec: "../../../node_modules/react-native-macos/third-party-podspecs/RCT-Folly.podspec"
|
||||
RCTFocusZone:
|
||||
:path: "../../../packages/components/FocusZone/RCTFocusZone.podspec"
|
||||
RCTRequired:
|
||||
:path: "../../../node_modules/react-native-macos/Libraries/RCTRequired"
|
||||
RCTTypeSafety:
|
||||
|
@ -455,14 +455,14 @@ SPEC CHECKSUMS:
|
|||
DoubleConversion: 56a44bcfd14ab2ff66f5a146b2e875eb4b69b19b
|
||||
FBLazyVector: 9d69690b3a1ca272ca0c0cee76ffcb6cf36d77af
|
||||
FBReactNativeSpec: 8b671febd2393669947b56e8d8f53a54185dd0b7
|
||||
FluentUI-React-Native-Avatar: ef9db2fa59e38f856a37d6463ce392458dc05654
|
||||
FluentUI-React-Native-Button: ebf53b24d557ac0d54e942be3901aa4839bc6dd0
|
||||
FluentUI-React-Native-FocusZone: 8290b9e1c0978a674cf01551b89d26a688055955
|
||||
FluentUI-React-Native-MenuButton: eb174258d46dc2619439be0734e9a0a36943adb4
|
||||
FluentUI-React-Native-Radio-Button: a56648ee6f8a47ce2474aca19d5fb5171f2a0183
|
||||
FRNAvatar: b2477748ea17a77744a7dec855a73b2c84f22771
|
||||
FRNButton: aec4eca5f1a963042cdb472bf04881f39191934d
|
||||
FRNMenuButton: fdbc0ca942ff55d8127373e36a3791bede248c77
|
||||
FRNRadioButton: 5fdc2e6f98250fe3e595bad5e919fe7d953711be
|
||||
glog: 1cb7c408c781ae8f35bbababe459b45e3dee4ec1
|
||||
MicrosoftFluentUI: b98d877a2122804132365aa167944f58ef4adb69
|
||||
RCT-Folly: 1347093ffe75e152d846f7e45a3ef901b60021aa
|
||||
RCTFocusZone: 34c83a64bed384d4e025a65eae0eaa1be0ee55f5
|
||||
RCTRequired: 34869e88152b553afc0c7bde31b7b95f626ae367
|
||||
RCTTypeSafety: a7e07dddefa291537fa86c996b19bbbeda9db88e
|
||||
React: 4b1d4533300d5ffecadd5966efad43aae87d0dcb
|
||||
|
@ -485,11 +485,11 @@ SPEC CHECKSUMS:
|
|||
ReactCommon: 014dd1ff02eab367fa6676b7b408d1a08893a98d
|
||||
ReactTestApp-DevSupport: 058444bc8d4df209aabc6a5f54a73bfd9a114f94
|
||||
ReactTestApp-Resources: 5950ae44720217c6778ff03fb1d906c8fb3ce483
|
||||
RNCPicker: 28e41a58b79cd82cc639391bb99ca1b2489a3ea9
|
||||
RNCPicker: 6780c753e9e674065db90d9c965920516402579d
|
||||
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
|
||||
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52
|
||||
Yoga: 77d9987384e26b4aaf3e7a01808838cc2d4304f2
|
||||
|
||||
PODFILE CHECKSUM: 15eda06aaa95b3f7091a3051b06322d719f25ff3
|
||||
PODFILE CHECKSUM: 53626981ab7ada684169fcd58047cf38bc63db19
|
||||
|
||||
COCOAPODS: 1.10.2
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "MSF -> FRN for most objective C prefixes",
|
||||
"packageName": "@fluentui-react-native/experimental-avatar",
|
||||
"email": "sanajmi@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "MSF -> FRN for most objective C prefixes",
|
||||
"packageName": "@fluentui-react-native/experimental-native-button",
|
||||
"email": "sanajmi@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "MSF -> FRN for most objective C prefixes",
|
||||
"packageName": "@fluentui-react-native/experimental-native-date-picker",
|
||||
"email": "sanajmi@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "MSF -> FRN for most objective C prefixes",
|
||||
"packageName": "@fluentui-react-native/focus-zone",
|
||||
"email": "sanajmi@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "MSF -> FRN for most objective C prefixes",
|
||||
"packageName": "@fluentui-react-native/menu-button",
|
||||
"email": "sanajmi@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "MSF -> FRN for most objective C prefixes",
|
||||
"packageName": "@fluentui-react-native/native-radio-button",
|
||||
"email": "sanajmi@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -10,38 +10,38 @@
|
|||
</metadata>
|
||||
<files>
|
||||
<!-- iOS device debug -->
|
||||
<file src="DerivedData\Build\Products\Debug-iphoneos\FluentUI-React-Native-Avatar\libFluentUI-React-Native-Avatar.a" target="Debug-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphoneos\FluentUI-React-Native-Button\libFluentUI-React-Native-Button.a" target="Debug-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphoneos\FluentUI-React-Native-Date-Picker\libFluentUI-React-Native-Date-Picker.a" target="Debug-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphoneos\FRNAvatar\libFRNAvatar.a" target="Debug-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphoneos\FRNButton\libFRNButton.a" target="Debug-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphoneos\FRNDatePicker\libFRNDatePicker.a" target="Debug-iphoneos"/>
|
||||
|
||||
<!-- iOS device ship -->
|
||||
<file src="DerivedData\Build\Products\Release-iphoneos\FluentUI-React-Native-Avatar\libFluentUI-React-Native-Avatar.a" target="Ship-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphoneos\FluentUI-React-Native-Button\libFluentUI-React-Native-Button.a" target="Ship-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphoneos\FluentUI-React-Native-Date-Picker\libFluentUI-React-Native-Date-Picker.a" target="Ship-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphoneos\FRNAvatar\libFRNAvatar.a" target="Ship-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphoneos\FRNButton\libFRNButton.a" target="Ship-iphoneos"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphoneos\FRNDatePicker\libFRNDatePicker.a" target="Ship-iphoneos"/>
|
||||
|
||||
<!-- iOS simulator debug -->
|
||||
<file src="DerivedData\Build\Products\Debug-iphonesimulator\FluentUI-React-Native-Avatar\libFluentUI-React-Native-Avatar.a" target="Debug-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphonesimulator\FluentUI-React-Native-Button\libFluentUI-React-Native-Button.a" target="Debug-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphonesimulator\FluentUI-React-Native-Date-Picker\libFluentUI-React-Native-Date-Picker.a" target="Debug-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphonesimulator\FRNAvatar\libFRNAvatar.a" target="Debug-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphonesimulator\FRNButton\libFRNButton.a" target="Debug-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Debug-iphonesimulator\FRNDatePicker\libFRNDatePicker.a" target="Debug-iphonesimulator"/>
|
||||
|
||||
<!-- iOS simulator ship -->
|
||||
<file src="DerivedData\Build\Products\Release-iphonesimulator\FluentUI-React-Native-Avatar\libFluentUI-React-Native-Avatar.a" target="Ship-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphonesimulator\FluentUI-React-Native-Button\libFluentUI-React-Native-Button.a" target="Ship-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphonesimulator\FluentUI-React-Native-Date-Picker\libFluentUI-React-Native-Date-Picker.a" target="Ship-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphonesimulator\FRNAvatar\libFRNAvatar.a" target="Ship-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphonesimulator\FRNButton\libFRNButton.a" target="Ship-iphonesimulator"/>
|
||||
<file src="DerivedData\Build\Products\Release-iphonesimulator\FRNDatePicker\libFRNDatePicker.a" target="Ship-iphonesimulator"/>
|
||||
|
||||
<!-- macOS debug -->
|
||||
<file src="DerivedData\Build\Products\Debug\FluentUI-React-Native-Avatar\libFluentUI-React-Native-Avatar.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FluentUI-React-Native-Button\libFluentUI-React-Native-Button.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FluentUI-React-Native-FocusZone\libFluentUI-React-Native-FocusZone.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FluentUI-React-Native-MenuButton\libFluentUI-React-Native-MenuButton.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FluentUI-React-Native-Radio-Button\libFluentUI-React-Native-Radio-Button.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FRNAvatar\libFRNAvatar.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FRNButton\libFRNButton.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FRNMenuButton\libFRNMenuButton.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\FRNRadioButton\libFRNRadioButton.a" target="Debug-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Debug\RCTFocusZone\libRCTFocusZone.a" target="Debug-macosx"/>
|
||||
|
||||
<!-- macOS ship -->
|
||||
<file src="DerivedData\Build\Products\Release\FluentUI-React-Native-Avatar\libFluentUI-React-Native-Avatar.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FluentUI-React-Native-Button\libFluentUI-React-Native-Button.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FluentUI-React-Native-FocusZone\libFluentUI-React-Native-FocusZone.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FluentUI-React-Native-MenuButton\libFluentUI-React-Native-MenuButton.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FluentUI-React-Native-Radio-Button\libFluentUI-React-Native-Radio-Button.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FRNAvatar\libFRNAvatar.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FRNButton\libFRNButton.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FRNMenuButton\libFRNMenuButton.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\FRNRadioButton\libFRNRadioButton.a" target="Ship-macosx"/>
|
||||
<file src="DerivedData\Build\Products\Release\RCTFocusZone\libRCTFocusZone.a" target="Ship-macosx"/>
|
||||
|
||||
</files>
|
||||
</package>
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'json'
|
|||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FluentUI-React-Native-FocusZone'
|
||||
s.name = 'RCTFocusZone'
|
||||
s.version = package['version']
|
||||
s.summary = package['description']
|
||||
s.license = package['license']
|
|
@ -3,7 +3,7 @@ require 'json'
|
|||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FluentUI-React-Native-MenuButton'
|
||||
s.name = 'FRNMenuButton'
|
||||
s.version = package['version']
|
||||
s.summary = package['description']
|
||||
s.license = package['license']
|
|
@ -1,7 +1,7 @@
|
|||
#import <React/RCTComponent.h>
|
||||
#import <React/RCTViewManager.h>
|
||||
|
||||
@implementation RCTConvert (MSFMenuButtonAdditions)
|
||||
@implementation RCTConvert (FRNMenuButtonAdditions)
|
||||
|
||||
+ (NSMenuItem *)menuItem:(id)json
|
||||
{
|
||||
|
@ -41,7 +41,7 @@
|
|||
@end
|
||||
|
||||
|
||||
@interface RCT_EXTERN_MODULE(MSFMenuButtonManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(FRNMenuButtonManager, RCTViewManager)
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(onItemClick, RCTBubblingEventBlock)
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import AppKit
|
||||
|
||||
@objc(MSFMenuButton)
|
||||
@objc(FRNMenuButton)
|
||||
open class MenuButton: NSPopUpButton {
|
||||
|
||||
public override init(frame buttonFrame: NSRect, pullsDown flag: Bool) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Foundation
|
||||
|
||||
@objc(MSFMenuButtonManager)
|
||||
@objc(FRNMenuButtonManager)
|
||||
class MenuButtonManager: RCTViewManager {
|
||||
override func view()->NSView! {
|
||||
return MenuButton()
|
||||
|
|
|
@ -5,7 +5,7 @@ import { ISlots, withSlots } from '@uifabricshared/foundation-composable';
|
|||
import { backgroundColorTokens, borderTokens } from '@fluentui-react-native/tokens';
|
||||
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
||||
|
||||
const NativeMenuButton = ensureNativeComponent('MSFMenuButton');
|
||||
const NativeMenuButton = ensureNativeComponent('FRNMenuButton');
|
||||
|
||||
import {
|
||||
MenuButtonName,
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'json'
|
|||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FluentUI-React-Native-Radio-Button'
|
||||
s.name = 'FRNRadioButton'
|
||||
s.version = package['version']
|
||||
s.summary = package['description']
|
||||
s.license = package['license']
|
|
@ -1,7 +1,7 @@
|
|||
class RadioButton: NSButton {
|
||||
|
||||
@objc public var onPress: RCTBubblingEventBlock?
|
||||
|
||||
|
||||
@objc public func sendCallback() {
|
||||
self.window?.makeFirstResponder(self)
|
||||
if (onPress != nil) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <React/RCTComponent.h>
|
||||
#import <React/RCTViewManager.h>
|
||||
|
||||
@interface RCT_EXTERN_MODULE(RadioButtonViewManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(FRNRadioButtonViewManager, RCTViewManager)
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(title, NSString);
|
||||
RCT_EXPORT_VIEW_PROPERTY(enabled, BOOL);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Foundation
|
||||
|
||||
@objc(RadioButtonViewManager)
|
||||
@objc(FRNRadioButtonViewManager)
|
||||
class RadioButtonViewManager: RCTViewManager {
|
||||
|
||||
override func view()->NSView! {
|
||||
|
@ -9,7 +9,7 @@ class RadioButtonViewManager: RCTViewManager {
|
|||
radioButton.target = radioButton
|
||||
return radioButton
|
||||
}
|
||||
|
||||
|
||||
override class func requiresMainQueueSetup() -> Bool {
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'json'
|
|||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FluentUI-React-Native-Avatar'
|
||||
s.name = 'FRNAvatar'
|
||||
s.version = package['version']
|
||||
s.summary = package['description']
|
||||
s.license = package['license']
|
|
@ -1,18 +1,18 @@
|
|||
import Foundation
|
||||
import FluentUI
|
||||
|
||||
@objc(MSFAvatarViewManager)
|
||||
@objc(FRNAvatarViewManager)
|
||||
class AvatarViewManager: RCTViewManager {
|
||||
|
||||
|
||||
override func view()->UIView! {
|
||||
let viewWrapper = MSFAvatar()
|
||||
let view = viewWrapper.view
|
||||
|
||||
|
||||
// Store the key value pair for lookup when we set props
|
||||
let storage = MSFAvatar.storage()
|
||||
let key = NSValue(nonretainedObject: view)
|
||||
storage[key] = viewWrapper
|
||||
|
||||
|
||||
return view
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef FRNAvatarStorage_h
|
||||
#define FRNAvatarStorage_h
|
||||
|
||||
@import FluentUI;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MSFAvatar (FRNAvatarViewManagerAdditons)
|
||||
|
||||
+ (NSMutableDictionary *)storage;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif /* FRNAvatarStorage_h */
|
|
@ -1,9 +1,9 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "MSFAvatarStorage.h"
|
||||
#import "FRNAvatarStorage.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@implementation MSFAvatar (MSFAvatarViewManagerAdditons)
|
||||
@implementation MSFAvatar (FRNAvatarViewManagerAdditons)
|
||||
|
||||
static NSMutableDictionary *s_sharedInstance;
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
#import <React/RCTViewManager.h>
|
||||
|
||||
#import "MSFAvatarStorage.h"
|
||||
#import "FRNAvatarStorage.h"
|
|
@ -1,6 +1,6 @@
|
|||
#import <React/RCTViewManager.h>
|
||||
|
||||
#import "MSFAvatarStorage.h"
|
||||
#import "FRNAvatarStorage.h"
|
||||
|
||||
@import FluentUI;
|
||||
|
||||
|
@ -28,7 +28,7 @@ RCT_REMAP_VIEW_PROPERTY(name, __custom__, type) \
|
|||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@implementation RCTConvert (MSFAvatarAdditions)
|
||||
@implementation RCTConvert (FRNAvatarAdditions)
|
||||
|
||||
RCT_ENUM_CONVERTER(MSFAvatarSize, (@{
|
||||
@"xSmall": @(MSFAvatarSizeXsmall),
|
||||
|
@ -61,7 +61,7 @@ RCT_ENUM_CONVERTER(MSFAvatarStyle, (@{
|
|||
|
||||
@end
|
||||
|
||||
@interface RCT_EXTERN_MODULE(MSFAvatarViewManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(FRNAvatarViewManager, RCTViewManager)
|
||||
|
||||
RCT_EXPORT_SWIFTUI_PROPERTY(primaryText, NSString, MSFAvatar)
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#ifndef MSFAvatarStorage_h
|
||||
#define MSFAvatarStorage_h
|
||||
|
||||
@import FluentUI;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MSFAvatar (MSFAvatarViewManagerAdditons)
|
||||
|
||||
+ (NSMutableDictionary *)storage;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif /* MSFAvatarStorage_h */
|
|
@ -1,7 +1,7 @@
|
|||
import Foundation
|
||||
import FluentUI
|
||||
|
||||
@objc(MSFAvatarViewManager)
|
||||
@objc(FRNAvatarViewManager)
|
||||
class AvatarViewManager: RCTViewManager {
|
||||
override func view()->NSView! {
|
||||
let avatarView = AvatarView(avatarSize: 72)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
@import FluentUI;
|
||||
|
||||
@interface RCT_EXTERN_MODULE(MSFAvatarViewManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(FRNAvatarViewManager, RCTViewManager)
|
||||
|
||||
RCT_REMAP_VIEW_PROPERTY(primaryText, contactName, NSString)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|||
|
||||
const avatarName = 'Avatar';
|
||||
|
||||
const NativeAvatarView = ensureNativeComponent('MSFAvatarView');
|
||||
const NativeAvatarView = ensureNativeComponent('FRNAvatarView');
|
||||
|
||||
export type Size = 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge';
|
||||
|
||||
|
@ -17,7 +17,7 @@ interface ExportedConstants {
|
|||
sizes: { [key in Size]: number };
|
||||
}
|
||||
|
||||
const ExportedNativeConstants: ExportedConstants = NativeModules.MSFAvatarViewManager;
|
||||
const ExportedNativeConstants: ExportedConstants = NativeModules.FRNAvatarViewManager;
|
||||
|
||||
export type AvatarTokens = {
|
||||
/**
|
||||
|
@ -116,7 +116,7 @@ export const Avatar = compose<AvatarType>({
|
|||
slots: { root: NativeAvatarView },
|
||||
slotProps: {
|
||||
root: buildProps<NativeAvatarViewProps, AvatarTokens>(
|
||||
(tokens) => ({
|
||||
tokens => ({
|
||||
size: tokens.size,
|
||||
style: {
|
||||
height: ExportedNativeConstants.sizes[tokens.size],
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'json'
|
|||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FluentUI-React-Native-Button'
|
||||
s.name = 'FRNButton'
|
||||
s.version = package['version']
|
||||
s.summary = package['description']
|
||||
s.license = package['license']
|
|
@ -1,7 +1,7 @@
|
|||
import Foundation
|
||||
import FluentUI
|
||||
|
||||
@objc(MSFButtonViewManager)
|
||||
@objc(FRNButtonViewManager)
|
||||
class ButtonViewManager: RCTViewManager {
|
||||
|
||||
override func view() -> UIView! {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
@import FluentUI;
|
||||
|
||||
@implementation RCTConvert (MSFButtonAdditions)
|
||||
@implementation RCTConvert (FRNButtonAdditions)
|
||||
RCT_ENUM_CONVERTER(MSFButtonStyle, (@{
|
||||
@"primary": @(MSFButtonStylePrimaryFilled),
|
||||
@"secondary": @(MSFButtonStyleSecondaryOutline),
|
||||
|
@ -14,7 +14,7 @@ RCT_ENUM_CONVERTER(MSFButtonStyle, (@{
|
|||
|
||||
@end
|
||||
|
||||
@interface RCT_EXTERN_MODULE(MSFButtonViewManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(FRNButtonViewManager, RCTViewManager)
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(image, UIImage);
|
||||
RCT_EXPORT_VIEW_PROPERTY(onPress, RCTBubblingEventBlock);
|
|
@ -1,9 +1,9 @@
|
|||
import Foundation
|
||||
import FluentUI
|
||||
|
||||
@objc(MSFButtonViewManager)
|
||||
@objc(FRNButtonViewManager)
|
||||
class ButtonViewManager: RCTViewManager {
|
||||
|
||||
|
||||
override func view() -> NSView! {
|
||||
let button = ButtonWrapper()
|
||||
return button
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
@import FluentUI;
|
||||
|
||||
@implementation RCTConvert (MSFButtonAdditions)
|
||||
@implementation RCTConvert (FRNButtonAdditions)
|
||||
RCT_ENUM_CONVERTER(MSFButtonStyle, (@{
|
||||
@"primary": @(MSFButtonStylePrimary),
|
||||
@"secondary": @(MSFButtonStyleSecondary),
|
||||
|
@ -14,7 +14,7 @@ RCT_ENUM_CONVERTER(MSFButtonStyle, (@{
|
|||
|
||||
@end
|
||||
|
||||
@interface RCT_EXTERN_MODULE(MSFButtonViewManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(FRNButtonViewManager, RCTViewManager)
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(title, NSString);
|
||||
RCT_EXPORT_VIEW_PROPERTY(image, UIImage);
|
|
@ -5,7 +5,7 @@ import { Button } from '@fluentui-react-native/experimental-button';
|
|||
import { compose, mergeProps, withSlots, UseSlots, buildProps } from '@fluentui-react-native/framework';
|
||||
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
||||
|
||||
const NativeButtonComponent = ensureNativeComponent('MSFButtonView');
|
||||
const NativeButtonComponent = ensureNativeComponent('FRNButtonView');
|
||||
|
||||
export const NativeButton = compose<NativeButtonType>({
|
||||
displayName: nativeButtonName,
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'json'
|
|||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'FluentUI-React-Native-Date-Picker'
|
||||
s.name = 'FRNDatePicker'
|
||||
s.version = package['version']
|
||||
s.summary = package['description']
|
||||
s.license = package['license']
|
|
@ -1,6 +1,6 @@
|
|||
import FluentUI
|
||||
|
||||
@objc(MSFDatePickerManager)
|
||||
@objc(FRNDatePickerManager)
|
||||
public class DatePickerManager: NSObject {
|
||||
var lastDelegate: DatePickerDelegate?
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
@import FluentUI;
|
||||
|
||||
static NSDictionary<NSString *, NSDictionary<NSString *, NSNumber *> *> *MSFDatePickerGetEnumMaps() {
|
||||
static NSDictionary<NSString *, NSDictionary<NSString *, NSNumber *> *> *FRNDatePickerGetEnumMaps() {
|
||||
return @{
|
||||
@"MSFDateTimePickerMode": @{
|
||||
@"date": @(MSFDateTimePickerModeDate),
|
||||
|
@ -24,28 +24,28 @@ static NSDictionary<NSString *, NSDictionary<NSString *, NSNumber *> *> *MSFDate
|
|||
};
|
||||
}
|
||||
|
||||
@implementation RCTConvert (MSFDatePickerAdditions)
|
||||
@implementation RCTConvert (FRNDatePickerAdditions)
|
||||
|
||||
RCT_ENUM_CONVERTER(MSFDateTimePickerMode,
|
||||
MSFDatePickerGetEnumMaps()[@"MSFDateTimePickerMode"],
|
||||
FRNDatePickerGetEnumMaps()[@"MSFDateTimePickerMode"],
|
||||
MSFDateTimePickerModeDate,
|
||||
integerValue)
|
||||
RCT_ENUM_CONVERTER(MSFDateTimePickerDatePickerType,
|
||||
MSFDatePickerGetEnumMaps()[@"MSFDateTimePickerDatePickerType"],
|
||||
FRNDatePickerGetEnumMaps()[@"MSFDateTimePickerDatePickerType"],
|
||||
MSFDateTimePickerDatePickerTypeCalendar,
|
||||
integerValue)
|
||||
RCT_ENUM_CONVERTER(MSFDateTimePickerDateRangePresentation,
|
||||
MSFDatePickerGetEnumMaps()[@"MSFDateTimePickerDateRangePresentation"],
|
||||
FRNDatePickerGetEnumMaps()[@"MSFDateTimePickerDateRangePresentation"],
|
||||
MSFDateTimePickerDateRangePresentationPaged,
|
||||
integerValue)
|
||||
|
||||
@end
|
||||
|
||||
@interface RCT_EXTERN_MODULE(MSFDatePickerManager, NSObject)
|
||||
@interface RCT_EXTERN_MODULE(FRNDatePickerManager, NSObject)
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
return MSFDatePickerGetEnumMaps();
|
||||
return FRNDatePickerGetEnumMaps();
|
||||
}
|
||||
|
||||
RCT_EXTERN_METHOD(presentWithMode:(MSFDateTimePickerMode)mode
|
Загрузка…
Ссылка в новой задаче