Comments (3)
I am on the same boat, Trying to get the View to take full width.
from react-native-paper.
Hey, what do you want to achieve?
If you want to center the text you can do it like this:
<Menu.Item style={{alignItems: 'center'}} contentStyle={{ alignItems:'center'}} />
![Screenshot 2024-04-19 at 11 47 59](https://private-user-images.githubusercontent.com/1676818/323912475-27fae61f-24dc-42e3-8951-1fd0d4fff7d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMzMzMzcsIm5iZiI6MTcyMTIzMzAzNywicGF0aCI6Ii8xNjc2ODE4LzMyMzkxMjQ3NS0yN2ZhZTYxZi0yNGRjLTQyZTMtODk1MS0xZmQwZDRmZmY3ZDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTdUMTYxNzE3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2FhODYxNjMxZjdlYzA4MzdjYjE2ZmQ4Y2M1MTQxNzU1NjBhMTAyNTg3NjMyZTI0ZDI3Zjc0MGFiMWE3MjhhZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Ilk0xGRnoxakMGNyHMtmTRUsJPFlq7DhK7cf4kKBGUw)
from react-native-paper.
@gedu I'm trying to vertically center the leading icon and the text, which parent view is a view we cannot apply styles to
from react-native-paper.
Related Issues (20)
- Badge font-scaling handling doesn't work on iOS
- Button showing weird behaviour HOT 2
- DataTable.Pagination numberOfItemsPerPageList appears in the wrong position HOT 1
- Can you please add Ratting component? HOT 1
- Fix hover support to web for Drawer.Item component HOT 2
- How can I change icon position using BottomNavigation.Bar in a Tab.Navigator
- How can I change icon position using BottomNavigation.Bar in a Tab.Navigator HOT 1
- [Android] TextInput, ActivityIndicator and Modal make rn SectionList stickySectionHeadersEnabled not work correctly HOT 7
- Shadow Issue with Colored React Native Elements in TextInput Label HOT 5
- IconButton crashes due to missing dependency on `react-native-vector-icons` HOT 3
- Button "text" mode colors HOT 3
- [Android-Only] Snackbar visibility issue with RN New Architecture HOT 1
- Modal Animation HOT 4
- Text Input label position HOT 5
- onPress Card don't work after upgrade Expo to 51 HOT 4
- Modal flickering on closeing HOT 2
- Multiline text in SegmentedButtonItem
- Problem with the "BottomNavigation.Bar" component example (route.title) HOT 2
- Timeline to official New Architecture support? HOT 1
- useTheme function need more explanation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-paper.