Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from 'react'
import { StyleSheet, View, SafeAreaView } from 'react-native'
import Carousel from 'react-native-snap-carousel';
import { Container, Header, Content, Card, CardItem, Thumbnail, Text, Button, Icon, Left, Body, Right, Image } from 'native-base';
class VegRecipes extends Component {
constructor(props) {
super(props);
this.state = {
var dialogs = require('alloy/dialogs');
function editPermissions(e) {
if (OS_IOS) {
Ti.Platform.openURL(Ti.App.iOS.applicationOpenSettingsURL);
}
if (OS_ANDROID) {
var intent = Ti.Android.createIntent({
var dialogs = require('alloy/dialogs');
function editPermissions(e) {
if (OS_IOS) {
Ti.Platform.openURL(Ti.App.iOS.applicationOpenSettingsURL);
}
if (OS_ANDROID) {
var intent = Ti.Android.createIntent({
@Ayyagaries
Ayyagaries / index.js
Created February 19, 2021 22:26
This is my index.js
var win = Ti.UI.createWindow({
backgroundColor:'white',
layout: "vertical"
});
var btnContainer = Ti.UI.createScrollView();
var activityPopoverBtn = Ti.UI.createButton({