Skip to content

Commit

Permalink
fix: weird horizontal scrolling in the asset form
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed May 29, 2021
1 parent 8eb0900 commit 6a9a57f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ import {

const styles = StyleSheet.create({
assetContainer: {
// flex: 1,
width: Dimensions.get('window').width * 0.90,
// height: Dimensions.get('window').height * .80,
margin: 20,
padding: 10,
textAlign: 'left',
backgroundColor: 'white',
borderColor: '#eaeaea',
borderRadius: 10,
borderWidth: 1,
// justifyContent: 'center',
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const AssetSupplementary = ({ selectedAsset, setSelectedAsset, surveyingOrganiza
const [photoFile, setPhotoFile] = useState('State Photo String');

return (
<ScrollView vertical>
<ScrollView>
<Formik
initialValues={{}}
onSubmit={async (values, actions) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { StyleSheet } from 'react-native';
import { Dimensions, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
assetContainer: {
width: '90%',
height: '100%',
margin: 30,
flex: 1,
width: Dimensions.get('window').width * 0.90,
padding: 10,
textAlign: 'left',
backgroundColor: 'white',
borderColor: '#eaeaea',
borderRadius: 10,
borderWidth: 1,
justifyContent: 'center',
}
});

Expand Down

0 comments on commit 6a9a57f

Please sign in to comment.