Comments (6)
here
this is the snack of the code kindly take the reference for menu of numberoflistitems to resolve the issue of drop-down.
from react-native-paper.
Hey, can you show some code or snack?
I'm assuming that the list you pass to numberOfItemsPerPageList
has values, because if it is an empty list, the Menu won't show up
from react-native-paper.
constructor(props) {
super(props);
this.state = {
rows: [],
column: [],
max: 0,
items: [],
page: 0,
setData: {},
numberOfItemsPerPageList: [5, 25, 100],
itemsPerPage: 5,
selectedIndex: null, // Initialize selectedIndex
};
}
const { page, itemsPerPage, numberOfItemsPerPageList, items } = this.state;
<DataTable.Pagination
page={page}
numberOfPages={Math.ceil(this.state.max / itemsPerPage)}
onPageChange={page => this.setState({ page })}
label={${from + 1}-${to} of ${this.state.max}
}
numberOfItemsPerPageList={numberOfItemsPerPageList}
numberOfItemsPerPage={itemsPerPage}
onItemsPerPageChange={this.onItemsPerPageChange}
selectPageDropdownLabel={'Rows per page'}
/>
No, numberOfItemsPerPageList is not empty it have value 5,25,100
from react-native-paper.
I couldn't reproduce it, if you can create a snack where I can see the code and try to reproduce it would be really helpful
from react-native-paper.
Hey, the snack you sent isn't using the last version, can you try with the last react-native-paper version 5.12.2
from react-native-paper.
Hi, Checked with the latest version Here ,
still the issue is their dopdown is not coming for Android
from react-native-paper.
Related Issues (20)
- Badge font-scaling handling doesn't work on iOS
- Button showing weird behaviour HOT 1
- 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 1
- Timeline to official New Architecture support? HOT 1
- useTheme function need more explanation
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.