react-native-appboy-sdk
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -0,1 +1,15 @@ | ||
## 1.3.0 | ||
##### Breaking | ||
- Updates the native iOS bridge to use [Appboy iOS SDK 2.29.0](https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#2290), which drops support for iOS 7. | ||
- Updates the native Android bridge to use [Appboy Android SDK 2.0.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#200). | ||
##### Added | ||
- Adds `ReactAppboy.requestImmediateDataFlush()` for requesting an immediate flush of any data waiting to be sent to Appboy's servers. | ||
- Adds `ReactAppboy.requestFeedRefresh()` for requesting a refresh of the News Feed. | ||
- See https://github.com/Appboy/appboy-react-sdk/pull/12. Thanks @stief510! | ||
- Added the ability to pass an optional dictionary of News Feed launch options to `launchNewsFeed()`. See `NewsFeedLaunchOptions` for supported keys. | ||
- For more information on currently supported `NewsFeedLaunchOptions` keys, see the card width and card margin properties on [ABKFeedViewController](http://appboy.github.io/appboy-ios-sdk/docs/interface_a_b_k_feed_view_controller.html). | ||
- See https://github.com/Appboy/appboy-react-sdk/pull/10. Thanks @mihalychk! | ||
## 1.2.0 | ||
@@ -2,0 +16,0 @@ |
28
index.js
const AppboyReactBridge = require('react-native').NativeModules.AppboyReactBridge; | ||
AppboyReactBridge.setSDKFlavor(); | ||
@@ -368,8 +369,16 @@ /** | ||
* Launches the News Feed UI element. | ||
* @param {object} launchOptions - An optional dictionary of News Feed launch options. See NewsFeedLaunchOptions for supported keys. | ||
*/ | ||
launchNewsFeed: function() { | ||
AppboyReactBridge.launchNewsFeed(); | ||
launchNewsFeed: function(launchOptions) { | ||
AppboyReactBridge.launchNewsFeed(launchOptions); | ||
}, | ||
/** | ||
* Requests a News Feed refresh. | ||
*/ | ||
requestFeedRefresh: function() { | ||
AppboyReactBridge.requestFeedRefresh(); | ||
}, | ||
/** | ||
* Returns the current number of News Feed cards for the given category. | ||
@@ -404,2 +413,10 @@ * @param {CardCategory} category - Card category. Use ReactAppboy.CardCategory.ALL to get the total card count. | ||
// Flush Controls | ||
/** | ||
* Requests an immediate flush of any data waiting to be sent to Appboy's servers. | ||
*/ | ||
requestImmediateDataFlush: function() { | ||
AppboyReactBridge.requestImmediateDataFlush(); | ||
}, | ||
// Enums | ||
@@ -424,2 +441,9 @@ CardCategory: { | ||
'FEMALE': 'f' | ||
}, | ||
NewsFeedLaunchOptions: { | ||
'CARD_WIDTH_FOR_IPHONE': 'cardWidthForiPhone', | ||
'CARD_WIDTH_FOR_IPAD': 'cardWidthForiPad', | ||
'MINIMUM_CARD_MARGIN_FOR_IPHONE': 'minimumCardMarginForiPhone', | ||
'MINIMUM_CARD_MARGIN_FOR_IPAD': 'minimumCardMarginForiPad' | ||
} | ||
@@ -426,0 +450,0 @@ }; |
{ | ||
"name": "react-native-appboy-sdk", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Appboy SDK for React Native.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,2 @@  | ||
See our [Technical Documentation](http://documentation.appboy.com "Appboy Technical Documentation") for instructions on integrating Appboy into your React Native App. | ||
See our Technical Documentation ([iOS](https://www.appboy.com/documentation/React_Native/iOS/), [Android](https://www.appboy.com/documentation/React_Native/Android_and_FireOS/)) for instructions on integrating Appboy into your React Native App. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125894
25
446