Comments (2)
An alternative solution which doesn't require changes to this library is to wrap the children within the ScrollView. The View is given the prop onStartShouldSetResponder
which tells it to pass up the touch-start event to the ScrollView.
It may be helpful to document this in the Readme.
<MaterialDialog
visible={this.state.isVisible}
okLabel={'OK'}
onOk={this.closeModal}
onCancel={this.closeModal}
scrolled={true}
>
<ScrollView>
<View onStartShouldSetResponder={() => true}>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
<Text style={{padding: 100}}>Lorem ipsum ....</Text>
</View>
</ScrollView>
</MaterialDialog>
from react-native-material-dialog.
this Line be changed
const { height } = Platform.OS == 'android' ? Dimensions.get('window') : Dimensions.get('screen');
from react-native-material-dialog.
Related Issues (20)
- Bug - undefined is not object (evaluating 'result.selectitem.value') HOT 5
- Buttons aren't displayed HOT 3
- iPhone SE Cancel/ OK buttons not appearing HOT 1
- is there any way to change checkbox icon style? HOT 1
- Option to only allow dismissing dialog by clicking on OK/Cancel button HOT 1
- Custom styles HOT 1
- onOk and onCancel HOT 4
- [iOS] Picker lablel's character is displaced when using combination of single and double byte characters HOT 2
- Typescript definition for MultiPickerMaterialDialog is incorrect HOT 1
- Failed prop type: The prop `children` is marked as required in `MaterialDialog`, but its value is `undefined` in MaterialDialog
- With many select options action buttons disappear HOT 2
- support customized fonts
- [Proposal] Use FlatList instead of ListView in picker dialogs HOT 2
- select all button in MultiPicker
- Element type is invalid, expected a string but got object
- Long labels are not wrapped correctly HOT 2
- SinglePickerMaterialDialog | Selected item not getting saved
- how to make when tap outside not let the dialog disappear?
- Invariant violation List view has been removed from React Native 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-material-dialog.