Skip to content

Conversation

@prasetyoyudo
Copy link

fix styling with osmicsx lib

import { ScrollView, Text } from 'react-native'
import { connect } from 'react-redux'
import { TouchableOpacity } from 'react-native'
import { ScrollView,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to fix the indent, indent spaces are 2

import {
  ScrollView,
  Text,
  View,
  SafeAreaView,
  FlatList,
  Image,
}

<TouchableOpacity onPress={()=> this.actionDetail()}>
<View
width={295} height={90}
style={apply('rounded-b-lg rounded-t-lg bg-white mt-5 pl-7 items-center')}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it more than 3 styles, you can put it on Style file

@@ -1,10 +1,8 @@
import { StyleSheet } from 'react-native'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole file needs to be transformed into OsmiCSX

import { connect } from '../../Themes/OsmiCSX'

export default connect({
// your style code goes here
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants