-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
QuanPV
committed
May 3, 2017
1 parent
1795020
commit 2a6875a
Showing
5 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { NativeModules, Platform, ActionSheetIOS } from 'react-native'; | ||
import { NativeModules, Platform } from 'react-native'; | ||
import BottomSheetIOS from "./module.ios"; | ||
|
||
export default Platform.OS === 'ios' ? ActionSheetIOS : NativeModules.RNBottomSheet; | ||
export default Platform.OS === 'ios' ? BottomSheetIOS : NativeModules.RNBottomSheet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use strict"; | ||
import { ActionSheetIOS } from 'react-native'; | ||
|
||
const BottomSheetIOS = { | ||
showBottomSheetWithOptions: (options, callback) => { | ||
return ActionSheetIOS.showActionSheetWithOptions(options, callback); | ||
}, | ||
|
||
showShareBottomSheetWithOptions: (options, failureCallback, successCallback) => { | ||
return ActionSheetIOS.showShareActionSheetWithOptions(options, failureCallback, successCallback); | ||
} | ||
} | ||
|
||
export default BottomSheetIOS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters