How to access native calendar by using hybrid technology - ibm-mobilefirst

How to access native calendar by using hybrid technology?,
For example adding event to calendar?

You can write a Cordova plug-in that will call custom native could that you will have to implement, in order to add events to the default Calendar application provided by the OS.
To implement Cordova plug-ins in MobileFirst Platform, see here: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/adding-native-functionality/
To programmatically add events, see here for one such example: Programmatically add custom event in the iPhone Calendar

Related

Customize and change the default UI of pdftron - reactNative

My question is does pdftron give react native developpers some alternatives to change the whole ui?
As an example, i want to create a bottomTab to control the annotations and other things.
is it possible to do it without touching the java and swift code ?
you can create your own custom UI and use the set tool API in the PDFTron library. This allows the developer to set what tool mode is currently being used. You can also hide existing toolbars by using the available api’s.
Please see https://github.com/PDFTron/pdftron-react-native/blob/master/API.md#settoolmode for more information.

Does Telegram API support swipes?

If I have a bunch of pictures, Is there any way to see all the pictures like on the Right Image, instead of the standard way (Left Image)
It's not the responsibility of Telegram API to support swipes. This will be down to the UI library you are using to build your app. All native apps should support swipes by default, however, by the looks of your UI widget you are trying to implement a Carousel as there are forward and back icons. If you let us know what platform you are targeting, what language / framework you are using there should be loads of useful suggestions.

React Native: Activity and metrics tracking libraries?

I'm looking into adding a tracking library (something like what Google Analytics does for the web) to my React Native app.
Are there tools out there to track user activity like swiping, tapping on stuff, etc? I did a quick search but didn't find anything.
To track events you can use google analytics in react-native either as a javascript or a native implementation.
The key difference is that in the native implementation you get a some metadata handled automatically. ( such as device UUID, device model, viewport size, OS version ).
Javascript implementation: https://github.com/react-ga/react-ga
Native bridge: https://github.com/idehub/react-native-google-analytics-bridge

Different UI for Android/iOS in interpreted JS cross-platform tools

Some cross-platform tools (like Xamarin native and RubyMotion) allow the development of two separate views for Android and iOS, while keeping the business logic shared for both of them. Others (like Apache Cordova or Xamarin.Forms) share both UI and business layer, with the option to use platform-specific overrides when necessary.
What is the state of the interpreted JavaScript frameworks (NativeScript, React Native or Appcelerator)? Are they all focused on creating single UI with platform overrides, or do they allow creating two separate views for each platform? For example, is it possible to create a view using Fragments in Android, but a different view on iOS (since Fragments do not exist there)?
Cordova uses WebView, that mean GUI level will be the same for both Android and iOS but different per Device version. In case of Android each client has own Chronium version and it can break UI behaviour. So developers use Crosswalk to set fixed Chronium version. (extra 20M to your application).
BTW Ionic that uses Cordova architecture uses native behaviour per platform. For example for Android Tabs located at the top, on iOS - at the bottom
On other hand Xamarin (C#), React-Native(JS) and NativeScript(JS) call native APIs. They don't use WebView but generate Native code.
For example if you create button - it will look different: on Android - material theme, on iOS - iPhone theme
Anyways, the bottom line is: everything depends on resources and time. If you want to build application fast, with the same view - I would go on Ionic2+ Angular2 + Cordova.
If you you have more time - go on React-Native or NativeScript (Still has poor documentation) or Xamarin (C#).
React-native's slogan is Learn once, write everywhere. So, you can choose what suits your needs, you can:
Share UI between platforms.
Share Only business logic.
So, the answer for react-native is yes. You can create separate UIs or you can share it.
Since you are writing components, one way of separating this logic is to write component.android.js and component.ios.js and the platform loads the appropriate one for you. Note that you can also do that programmatically.
You can see that in action in the official f8 app made by facebook using react-native

Build Calendar into iOS App

I am building a iPad app that will have a calendar and that calendar will pull down its events from CalDav or from .ics.
Does anyone know of any sample code that shows the basic structure on how to do this. Is their a Calendar controller already in xCode?
You can use the TapKu Library.It may be helpful .
http://developinginthedark.com/posts/iphone-tapku-calendar-markers
Not sure about CalDav of .ics but you can access the calendar using the Event Kit (from iOS 4.0). It lets you query and create calendar entries and suchlike.
You can read about it here on the Apple site.