Skip to content

Instantly share code, notes, and snippets.

View Necromant1k's full-sized avatar

Andrey Guzyuk Necromant1k

View GitHub Profile
import React, {Component} from 'react';
import {
View,
Image
} from 'react-native';
import {
Text
} from 'native-base';
import {styles} from './Collapsible.styles.js';
import Swiper from 'react-native-swiper';
import {StyleSheet, Dimensions} from 'react-native';
export const styles = StyleSheet.create({
titleContainer: {
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
paddingLeft: 50,
paddingRight: 50,
defaultTags.map(async tag => {
const transaction = await Model.sequelize.transaction()
try {
const categoryTags = await CategoryTags.findById(req.params.catId, {transaction})
await categoryTags.destroy({where: req.params.catId})
await transaction.commit()
} catch (err) {
await transaction.rollback()
}
try {