diff --git a/docs/src/articles/design-system/custom-mapping.md b/docs/src/articles/design-system/custom-mapping.md index 519ce5308..3b47d8406 100644 --- a/docs/src/articles/design-system/custom-mapping.md +++ b/docs/src/articles/design-system/custom-mapping.md @@ -171,7 +171,30 @@ The example above demonstrates how you can create a really simple configuration. } ``` -What we did is that we added a rounded [variant](design-system/design-system-glossary#variant) which will make our `CircleButton` not such circle. And this is how it looks: +What we did is that we added a rounded [variant](design-system/design-system-glossary#variant) which will make our `CircleButton` not such circle. Let's now pass it to a component: + +```js +import * as React from 'react'; +import { ApplicationProvider, Layout } from 'react-native-ui-kitten'; +import { mapping, light as lightTheme } from '@eva-design/eva'; +import { default as customMapping } from './path-to/custom-mapping.json'; +import CircleButton from './path-to/CircleButton'; + +const App = () => ( + + + // <-- Apply `rounded` shape variant + + +); + +export default App; +``` + +And this is how it looks: ![image](assets/images/articles/design-system/custom-mapping-variant.png) @@ -237,9 +260,10 @@ class CircleButton extends React.Component { return ( ); }