unicorn-demo-app 7.46.2-snapshot.7306 → 7.46.2-snapshot.7316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unicorn-demo-app",
3
- "version": "7.46.2-snapshot.7306",
3
+ "version": "7.46.2-snapshot.7316",
4
4
  "main": "src/index.js",
5
5
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
6
6
  "license": "MIT",
@@ -1,6 +1,17 @@
1
1
  import React, {Component} from 'react';
2
- import {ScrollView, StyleSheet, Alert, Image} from 'react-native';
3
- import {Text, View, Assets, Constants, Button, Colors, Typography, ButtonProps} from 'react-native-ui-lib';
2
+ import {ScrollView, StyleSheet, Alert} from 'react-native';
3
+ import {
4
+ Text,
5
+ View,
6
+ Assets,
7
+ Constants,
8
+ Button,
9
+ Colors,
10
+ Typography,
11
+ ButtonProps,
12
+ Incubator,
13
+ Image
14
+ } from 'react-native-ui-lib';
4
15
 
5
16
  const ButtonSpace = 20;
6
17
  const plusIcon = Assets.getAssetByPath('icons.demo.plus');
@@ -267,6 +278,34 @@ export default class ButtonsScreen extends Component {
267
278
  <Button label="hyperlink button" hyperlink style={{marginBottom: ButtonSpace}}/>
268
279
 
269
280
  <Button label="Icon on right" iconSource={plusIcon} iconOnRight/>
281
+
282
+ <Text style={styles.header}>Custom Backgrounds</Text>
283
+ <Button
284
+ label="Gradient Background"
285
+ customBackground={
286
+ <Incubator.Gradient
287
+ colors={[Colors.$backgroundPrimaryHeavy, Colors.$backgroundPrimaryMedium]}
288
+ type="rectangle"
289
+ width={200}
290
+ height={50}
291
+ />
292
+ }
293
+ style={{marginBottom: ButtonSpace}}
294
+ />
295
+ <Button
296
+ label="Image Background"
297
+ customBackground={
298
+ <Image
299
+ source={{
300
+ uri: 'https://images.pexels.com/photos/748837/pexels-photo-748837.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'
301
+ }}
302
+ style={{width: 200, height: 50}}
303
+ resizeMode="cover"
304
+ />
305
+ }
306
+ style={{marginBottom: ButtonSpace}}
307
+ $textNeutralHeavy
308
+ />
270
309
  </View>
271
310
 
272
311
  <View marginT-20>