idk it is work on my project or not but your solution really helpful. thanks so much
@vishalpwr
Жыл бұрын
Glad it helped
@aslhanturkdonmez9394
11 ай бұрын
Nice content thanks. I have a question, if my dropdown is located too far down in the drawer, do you know how to prevent it from re-rendering every time I touch it, it is scrolling to the top?
@vishalpwr
11 ай бұрын
If you want to prevent unnecessary re-rendering then you have to optimize you component and you can add some condition for that and also you should use react.memo (higher-order component). Hope this will help.
@jervi_sir
Жыл бұрын
m wondering how to make a map grid of hexagones, with drag and drop particularities, but not sortable
@vishalpwr
Жыл бұрын
You can use svg to create hexagonal share or a hexagonal shaped image, and for drag & drop you can use react-native drag & drop flatlist package.
@vijaysarathi2883
Жыл бұрын
Is this mobile responsive?
@vishalpwr
Жыл бұрын
Yes almost but you should use different constants to make your view responsive. You can use these methods to get responsive width and height or size for any view. ``` export const widthPercentageToDP = widthPercent => { const screenWidth = Dimensions.get('window').width; const elemWidth = parseFloat(widthPercent+""); return PixelRatio.roundToNearestPixel((screenWidth * elemWidth) / 100); }; export const heightPercentageToDP = heightPercent => { const screenHeight = Dimensions.get('window').height; // Convert string input to decimal number const elemHeight = parseFloat(heightPercent+""); return PixelRatio.roundToNearestPixel((screenHeight * elemHeight) / 100); }; ``` you can use it like so buttonStyle:{ padding: widthPercentageToDP(10), }
Пікірлер: 13