unicorn-demo-app 8.1.8-snapshot.7619 → 8.1.8-snapshot.7628

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": "8.1.8-snapshot.7619",
3
+ "version": "8.1.8-snapshot.7628",
4
4
  "main": "src/index.js",
5
5
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
6
6
  "license": "MIT",
@@ -5,6 +5,7 @@ import {renderBooleanOption} from '../ExampleScreenPresenter';
5
5
 
6
6
  interface State {
7
7
  showButton: boolean;
8
+ showPrimary: boolean;
8
9
  showSecondary: boolean;
9
10
  showVertical: boolean;
10
11
  }
@@ -12,6 +13,7 @@ interface State {
12
13
  export default class FloatingButtonScreen extends Component<{}, State> {
13
14
  state = {
14
15
  showButton: true,
16
+ showPrimary: true,
15
17
  showSecondary: true,
16
18
  showVertical: true,
17
19
  fullWidth: false
@@ -36,6 +38,7 @@ export default class FloatingButtonScreen extends Component<{}, State> {
36
38
  </Text>
37
39
  {renderBooleanOption.call(this, 'Show Floating Button', 'showButton')}
38
40
  {renderBooleanOption.call(this, 'Full Width Button', 'fullWidth')}
41
+ {renderBooleanOption.call(this, 'Show Primary Button', 'showPrimary')}
39
42
  {renderBooleanOption.call(this, 'Show Secondary Button', 'showSecondary')}
40
43
  {renderBooleanOption.call(this, 'Button Layout Vertical', 'showVertical')}
41
44
 
@@ -67,10 +70,14 @@ export default class FloatingButtonScreen extends Component<{}, State> {
67
70
  <FloatingButton
68
71
  visible={this.state.showButton}
69
72
  fullWidth={this.state.fullWidth}
70
- button={{
71
- label: 'Approve',
72
- onPress: this.close
73
- }}
73
+ button={
74
+ this.state.showPrimary
75
+ ? {
76
+ label: 'Approve',
77
+ onPress: this.close
78
+ }
79
+ : undefined
80
+ }
74
81
  secondaryButton={
75
82
  showSecondary
76
83
  ? {