Skip to content

Commit 56d13fd

Browse files
committed
Merge branch 'master' into release
2 parents de5a345 + 6ff2f3f commit 56d13fd

File tree

835 files changed

+8010
-5139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

835 files changed

+8010
-5139
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23-
project.xcworkspace
2423
**/.xcode.env.local
2524

2625
# Android/IntelliJ
2726
#
2827
build/
2928
.idea
3029
.gradle
30+
.kotlin
3131
local.properties
3232
*.iml
3333
*.hprof
34-
android/gradlew.bat
34+
packages/react-native-ui-lib/android/gradlew.bat
3535
expoDemo/android/gradlew.bat
3636
.cxx/
3737
*.keystore
@@ -77,12 +77,12 @@ dist
7777
dist-ts
7878
package-lock.json
7979
docs/components/**
80-
!scripts/build
80+
!packages/react-native-ui-lib/scripts/build
81+
demo/src/screens/incubatorScreens/IncubatorCalendarScreen/MockData.ts
8182

8283
# Ruby / CocoaPods
8384
**/Pods/
8485
/vendor/bundle/
85-
/ios/Podfile.lock
8686
expoDemo/ios/Pods
8787

8888
.reassure

demo/src/screens/__tests__/__snapshots__/TextFieldScreen.spec.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4726,8 +4726,8 @@ exports[`TextField Screen renders screen 1`] = `
47264726
hitSlop={
47274727
{
47284728
"bottom": 7.5,
4729-
"left": 10,
4730-
"right": 10,
4729+
"left": 24,
4730+
"right": 24,
47314731
"top": 7.5,
47324732
}
47334733
}

demo/src/screens/componentScreens/FloatingButtonScreen.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import {renderBooleanOption} from '../ExampleScreenPresenter';
55

66
interface State {
77
showButton: boolean;
8+
showPrimary: boolean;
89
showSecondary: boolean;
910
showVertical: boolean;
1011
}
1112

1213
export default class FloatingButtonScreen extends Component<{}, State> {
1314
state = {
1415
showButton: true,
16+
showPrimary: true,
1517
showSecondary: true,
1618
showVertical: true,
1719
fullWidth: false
@@ -36,6 +38,7 @@ export default class FloatingButtonScreen extends Component<{}, State> {
3638
</Text>
3739
{renderBooleanOption.call(this, 'Show Floating Button', 'showButton')}
3840
{renderBooleanOption.call(this, 'Full Width Button', 'fullWidth')}
41+
{renderBooleanOption.call(this, 'Show Primary Button', 'showPrimary')}
3942
{renderBooleanOption.call(this, 'Show Secondary Button', 'showSecondary')}
4043
{renderBooleanOption.call(this, 'Button Layout Vertical', 'showVertical')}
4144

@@ -67,10 +70,14 @@ export default class FloatingButtonScreen extends Component<{}, State> {
6770
<FloatingButton
6871
visible={this.state.showButton}
6972
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+
}
7481
secondaryButton={
7582
showSecondary
7683
? {

demo/src/screens/incubatorScreens/IncubatorCalendarScreen/MockData.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

demo/src/screens/incubatorScreens/IncubatorCalendarScreen/MockServer.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import _ from 'lodash';
2-
import {data} from './MockData';
2+
let data;
3+
try {
4+
data = require('./MockData').data;
5+
} catch (error) {
6+
console.warn('Error loading MockData', error);
7+
data = [];
8+
}
39

410
const PAGE_SIZE = 400;
511
const FAKE_FETCH_TIME = 1500;

docuilib/src/theme/ReactLiveScope/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Hint from 'react-native-ui-lib/hint';
2020
import Icon from 'react-native-ui-lib/icon';
2121
import * as Incubator from 'react-native-ui-lib/incubator';
2222
import MaskedInput from 'react-native-ui-lib/maskedInput';
23+
import NumberInput from 'react-native-ui-lib/numberInput';
2324
import RadioButton from 'react-native-ui-lib/radioButton';
2425
import RadioGroup from 'react-native-ui-lib/radioGroup';
2526
import SegmentedControl from 'react-native-ui-lib/segmentedControl';
@@ -100,6 +101,7 @@ const ReactLiveScope = {
100101
Image,
101102
Incubator,
102103
MaskedInput,
104+
NumberInput,
103105
RadioButton,
104106
RadioGroup,
105107
SegmentedControl,

0 commit comments

Comments
 (0)