Comments (1)
I tried using Math.round()
as in #1790, but that did not work. However, using Math.floor()
instead will remove the vibration.
As a workaround I now have this custom compontent:
import { Modal as KittenModal } from "@ui-kitten/components";
import { Frame } from "@ui-kitten/components/devsupport";
class Modal extends KittenModal {
onContentMeasure = (contentFrame) => {
contentFrame.size.height = Math.round(contentFrame.size.height);
contentFrame.size.width = Math.floor(contentFrame.size.width);
const displayFrame = contentFrame.centerOf(Frame.window());
this.setState({ contentPosition: displayFrame.origin });
};
}
export default Modal;
Edit: Came across a modal that did horizontal vibration. This was not solved using floor, but only using round. So using round for height and floor for width now. Not sure if that will cover all cases.
from react-native-ui-kitten.
Related Issues (20)
- The accessoryRight display of ListItem is incomplete
- Custom mapping when applying text-font-family is not working correctly on android HOT 1
- React Native UI-Kitten Overflow Menu inside Top Navigation renders on left first before rendering to Right. HOT 8
- Custom theme background color does not show right
- Duplication of the month name 'March' in the calendar between 1981 and 1984.
- Modal no longer appears after upgrade
- How to customize Input element through mapping.json?
- View Pager selectedIndex fails to change the page shown after manually swiping a page
- Exception thrown while executing UI block: - [RNSVGSvgView setOnClick]: unrecognized selector sent to instance 0x01071ca460
- Input breaks inside a Scrollview
- Select option inner radius issue HOT 1
- Google Play store link of kitten tricks APP is 404 not found HOT 1
- Feature of Initials in Avatar component
- Is this project abandoned? HOT 6
- Can't find variable: React
- BottomNavigationTab has wrong offset on iOS
- hi, how to generate multiple tab in tabview HOT 1
- Defaultprops warning when using OverflowMenu HOT 2
- How to change fonts?
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-ui-kitten.