Skip to content

Instantly share code, notes, and snippets.

View troZee's full-sized avatar

troZee

View GitHub Profile
<View>
<MyNativeView ref={this.myNativeView} />
<ButtonContainer>
<Button
title="Previous"
onPress={() => {
this.myNativeView.current.goToPreviousPage();
}}
/>
<Button
<View>
<MyNativeView />
<ButtonContainer>
<Button title="Previous" />
<Button title="Next" />
</ButtonContainer>
<MyNativeView />
<ButtonContainer>
<Button title="Previous" />
<Button title="Next" />
// this func show CNContactViewController for new contact and fill it using CNMutableContact
// Remember about permissions
func createContcat() {
if #available(iOS 9.0, *) {
let contact = CNMutableContact()
contact.givenName = "Jack"
contact.familyName = "Sparrow"
//Blinking Animation of Multiply Drawables in ActionBar Toolbar on Android
//You can use AnimationDrawable, if you don't want to custom blinking animation
private void initAnimationOfCustomPins() {
ActionBar actionBar = getActionBar();
if (actionBar == null || !Constant.USE_ANIMATION_OF_CUSTOM_PINS) {
return;
}