This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |