Skip to content

Commit

Permalink
feat: example size
Browse files Browse the repository at this point in the history
  • Loading branch information
kdn0325 committed Mar 10, 2024
1 parent 0f9d395 commit f52934d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
horizontalScale,
verticalScale,
} from 'react-native-dimensions-util';
import { heightPercentage, widthPercentage } from './util/responsiveSize';

export default function App() {
const [color, setColor] = useState('#000000');
Expand Down Expand Up @@ -41,11 +42,10 @@ const styles = StyleSheet.create({
justifyContent: 'center',
},
boxContainer: {
width: horizontalScale(60),
height: verticalScale(60),
width: widthPercentage(60),
height: heightPercentage(60),
alignItems: 'center',
justifyContent: 'center',
marginVertical: verticalScale(20),
},
boxContainer2: {
width: horizontalScale(80),
Expand Down

0 comments on commit f52934d

Please sign in to comment.