react-native-boxes 1.0.4 → 1.0.6

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/dist/Text.js CHANGED
@@ -6,9 +6,9 @@ const react_native_1 = require("react-native");
6
6
  const ThemeContext_1 = require("./ThemeContext");
7
7
  function TextView(props) {
8
8
  const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
9
- return (<react_native_1.Text style={[{
9
+ return (<react_native_1.Text {...props} style={[{
10
10
  flexWrap: 'wrap',
11
- color: theme.colors.success,
11
+ color: theme.colors.text,
12
12
  padding: theme.dimens.space.sm
13
13
  }, theme.styles.text, props.style]}/>);
14
14
  }
package/dist/Text.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,+CAA+C;AAC/C,iDAA8C;AAE9C,SAAgB,QAAQ,CAAC,KAAgB;IACrC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,2BAAY,CAAC,CAAA;IACtC,OAAO,CACH,CAAC,mBAAI,CACD,KAAK,CAAC,CAAC,CAAC;gBACJ,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;gBAC3B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;aACjC,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAG,CAC7C,CAAA;AACL,CAAC;AAVD,4BAUC;AAGD,SAAgB,QAAQ,CAAC,KAAgB;IACrC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,2BAAY,CAAC,CAAA;IACtC,OAAO,CACH,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;YACxB;gBACI,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE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OAAO;aAC9B;YACD,KAAK,CAAC,KAAK;SACd,CAAC,EAAG,CACR,CAAA;AACL,CAAC;AAXD,0BAWC"}
package/dist/demo.js CHANGED
@@ -62,14 +62,15 @@ function DemoScreen({ navigation }) {
62
62
  forceUpdate();
63
63
  }, [selectedTheme]);
64
64
  const [, forceUpdate] = (0, react_1.useReducer)(x => x + 1, 0);
65
- return (<_1.VBox style={{
65
+ return (<react_native_safe_area_context_1.SafeAreaProvider>
66
+ <_1.VBox style={{
66
67
  backgroundColor: theme.colors.background,
67
68
  padding: 0,
68
69
  paddingBottom: bottomBarHeight,
69
70
  margin: 0,
70
71
  height: '100%'
71
72
  }}>
72
- <_1.SimpleToolbar title="Demo" homeIcon={(0, utils_1.ReactWrapper)(<Image_1.Icon color={theme.colors.invert.text} name="plus"/>)} options={[
73
+ <_1.SimpleToolbar title="Demo" homeIcon={(0, utils_1.ReactWrapper)(<Image_1.Icon color={theme.colors.invert.text} name="plus"/>)} options={[
73
74
  {
74
75
  id: 'test',
75
76
  icon: 'gear',
@@ -79,26 +80,26 @@ function DemoScreen({ navigation }) {
79
80
  {
80
81
  id: 'test2',
81
82
  icon: (0, utils_1.ReactWrapper)(<_1.PressableView>
82
- <Image_1.Avatar style={{
83
+ <Image_1.Avatar style={{
83
84
  margin: 0,
84
85
  height: theme.dimens?.icon?.md * 1.25,
85
86
  width: theme.dimens?.icon?.md * 1.25,
86
87
  }} iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4"/>
87
- </_1.PressableView>),
88
+ </_1.PressableView>),
88
89
  onClick: (id) => {
89
90
  }
90
91
  }
91
92
  ]}/>
92
- <Box_1.default automaticallyAdjustKeyboardInsets={true} keyboardShouldPersistTaps={'handled'} style={{
93
+ <Box_1.default automaticallyAdjustKeyboardInsets={true} keyboardShouldPersistTaps={'handled'} style={{
93
94
  flexGrow: 1,
94
95
  }} nestedScrollEnabled={true} showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false}>
95
96
 
96
- <_1.Center style={{
97
+ <_1.Center style={{
97
98
  flexDirection: 'row',
98
99
  padding: 20
99
100
  }}>
100
101
 
101
- <Image_1.Avatar onPress={() => {
102
+ <Image_1.Avatar onPress={() => {
102
103
  setbottomsheetVisible(true);
103
104
  }} style={{
104
105
  borderColor: theme.colors.success,
@@ -107,8 +108,8 @@ function DemoScreen({ navigation }) {
107
108
  color: theme.colors.success,
108
109
  size: theme.dimens.icon.lg
109
110
  }}/>
110
- <_1.Center>
111
- <Image_1.Avatar style={{
111
+ <_1.Center>
112
+ <Image_1.Avatar style={{
112
113
  borderWidth: theme.dimens.space.sm,
113
114
  width: 100,
114
115
  height: 100,
@@ -120,102 +121,102 @@ function DemoScreen({ navigation }) {
120
121
  color: theme.colors.success,
121
122
  size: theme.dimens.icon.lg
122
123
  }} iconUrl='https://cdn.truelancer.com/user-picture/307510-5c1f11bad82e9.jpg'/>
123
- <_1.Subtitle>{mText}</_1.Subtitle>
124
- </_1.Center>
124
+ <_1.Subtitle>{mText}</_1.Subtitle>
125
+ </_1.Center>
125
126
 
126
- <Image_1.Avatar style={{
127
+ <Image_1.Avatar style={{
127
128
  borderColor: theme.colors.success,
128
129
  color: theme.colors.success
129
130
  }} onPress={() => {
130
131
  setbottomsheetVisible(true);
131
132
  }} iconText='SN'/>
132
- </_1.Center>
133
- <_1.Expand title='Message Alert' initialExpand={false} style={{
133
+ </_1.Center>
134
+ <_1.Expand title='Message Alert' initialExpand={false} style={{
134
135
  backgroundColor: theme.colors.forground
135
136
  }} titleBackgroundColor={theme.colors.forground}>
136
- <_1.VBox>
137
- <Message_1.AlertMessage text={alert} onDismiss={() => {
137
+ <_1.VBox>
138
+ <Message_1.AlertMessage text={alert} onDismiss={() => {
138
139
  react_native_1.LayoutAnimation.configureNext(react_native_1.LayoutAnimation.Presets.easeInEaseOut);
139
140
  setAlert('');
140
141
  }}/>
141
- <Message_1.AlertMessage text='Critial Message' type='critical'/>
142
- <Message_1.AlertMessage text='Success' type='success'/>
143
- <Message_1.AlertMessage text='Warning Message' type='warning'/>
144
- </_1.VBox>
142
+ <Message_1.AlertMessage text='Critial Message' type='critical'/>
143
+ <Message_1.AlertMessage text='Success' type='success'/>
144
+ <Message_1.AlertMessage text='Warning Message' type='warning'/>
145
+ </_1.VBox>
145
146
 
146
- </_1.Expand>
147
- <_1.Expand style={{
147
+ </_1.Expand>
148
+ <_1.Expand style={{
148
149
  padding: 0,
149
150
  borderWidth: 0.1,
150
151
  borderColor: '#DCDCDC'
151
152
  }} duration={200} title='In this version, the icon used is always chevron-right even when expanded. In this version, the icon used is always chevron-right even when expanded.' initialExpand={false} iconPosition='right'>
152
- <_1.VBox>
153
- <_1.Title>Text A</_1.Title>
154
- <_1.Subtitle>Text A Text A Text AText A Text AText A</_1.Subtitle>
155
- <_1.TextView>Text A</_1.TextView>
156
- <_1.Caption>Text Caption</_1.Caption>
157
- </_1.VBox>
158
- </_1.Expand>
159
- <_1.Expand title='Inputs'>
153
+ <_1.VBox>
154
+ <_1.Title>Text A</_1.Title>
155
+ <_1.Subtitle>Text A Text A Text AText A Text AText A</_1.Subtitle>
156
+ <_1.TextView>Text A</_1.TextView>
157
+ <_1.Caption>Text Caption</_1.Caption>
158
+ </_1.VBox>
159
+ </_1.Expand>
160
+ <_1.Expand title='Inputs'>
160
161
 
161
- <_1.VBox>
162
- <_1.TextInputView style={{
162
+ <_1.VBox>
163
+ <_1.TextInputView style={{
163
164
  fontFamily: theme.fonts.Bold
164
165
  }} initialText={mText} value={mText} onChangeText={t => setMText(t)}/>
165
- <_1.CompositeTextInputView onChangeText={t => setMText(t)} placeholder='A test' initialText='Test'/>
166
- <_1.CompositeTextInputView inputMode='decimal' icon={"close"} style={{}} alertTextColor={theme.colors.warning} placeholder='Enter your name' initialText='Test' value={mText} onChangeText={t => setMText(t)}/>
167
- <_1.CompositeTextInputView style={{}} placeholder='Enter number' alertText={mText?.indexOf("@") > -1 ? '' : 'Please enter @ or else I am gonna come down at your place and mess you up buddy !'} initialText='Test' value={mText} onChangeText={t => setMText(t)}/>
168
- </_1.VBox>
169
- </_1.Expand>
166
+ <_1.CompositeTextInputView onChangeText={t => setMText(t)} placeholder='A test' initialText='Test'/>
167
+ <_1.CompositeTextInputView inputMode='decimal' icon={"close"} style={{}} alertTextColor={theme.colors.warning} placeholder='Enter your name' initialText='Test' value={mText} onChangeText={t => setMText(t)}/>
168
+ <_1.CompositeTextInputView style={{}} placeholder='Enter number' alertText={mText?.indexOf("@") > -1 ? '' : 'Please enter @ or else I am gonna come down at your place and mess you up buddy !'} initialText='Test' value={mText} onChangeText={t => setMText(t)}/>
169
+ </_1.VBox>
170
+ </_1.Expand>
170
171
 
171
- <_1.Expand iconStyle={{
172
+ <_1.Expand iconStyle={{
172
173
  name: 'chevron-right',
173
174
  color: 'red'
174
175
  }} title='Buttons' initialExpand={false}>
175
- <_1.VBox style={{}}>
176
- <_1.VBox>
177
- <_1.ButtonView icon={btnIcon} style={{}}>Button Icon</_1.ButtonView>
176
+ <_1.VBox style={{}}>
177
+ <_1.VBox>
178
+ <_1.ButtonView icon={btnIcon} style={{}}>Button Icon</_1.ButtonView>
178
179
 
179
- <_1.ButtonView style={{}}>Button Text</_1.ButtonView>
180
- </_1.VBox>
181
- <_1.RightIconButton text='Click Me Icon' icon={btnIcon}>
182
- </_1.RightIconButton>
180
+ <_1.ButtonView style={{}}>Button Text</_1.ButtonView>
181
+ </_1.VBox>
182
+ <_1.RightIconButton text='Click Me Icon' icon={btnIcon}>
183
+ </_1.RightIconButton>
183
184
 
184
- <_1.Center>
185
- <_1.LoadingButton onPress={(e) => {
185
+ <_1.Center>
186
+ <_1.LoadingButton onPress={(e) => {
186
187
  setLoading(!loading);
187
188
  }} loading={loading} text='Click Me'/>
188
189
 
189
- <_1.ButtonView underlayColor={theme.colors.transparent} style={{
190
+ <_1.ButtonView underlayColor={theme.colors.transparent} style={{
190
191
  color: theme.colors.accent,
191
192
  backgroundColor: theme.colors.transparent,
192
193
  }}>Tertiary button</_1.ButtonView>
193
194
 
194
- </_1.Center>
195
+ </_1.Center>
195
196
 
196
- <_1.Expand title='Nested expand'>
197
- <_1.HBox style={{
197
+ <_1.Expand title='Nested expand'>
198
+ <_1.HBox style={{
198
199
  justifyContent: 'center',
199
200
  }}>
200
- <_1.LoadingButton style={{
201
+ <_1.LoadingButton style={{
201
202
  width: 'auto'
202
203
  }} onPress={(e) => {
203
204
  setLoading(!loading);
204
205
  }} loading={loading} text='Click Me left'/>
205
- <_1.LoadingButton loaderStyle='transparent' style={{
206
+ <_1.LoadingButton loaderStyle='transparent' style={{
206
207
  width: 'auto'
207
208
  }} onPress={(e) => {
208
209
  setLoading(!loading);
209
210
  }} loading={loading} text='Click Me right'/>
210
- </_1.HBox>
211
- </_1.Expand>
211
+ </_1.HBox>
212
+ </_1.Expand>
212
213
 
213
- </_1.VBox>
214
- </_1.Expand>
214
+ </_1.VBox>
215
+ </_1.Expand>
215
216
 
216
217
 
217
218
 
218
- <_1.ButtonView underlayColor={theme.colors.transparent} style={{
219
+ <_1.ButtonView underlayColor={theme.colors.transparent} style={{
219
220
  color: theme.colors.accent,
220
221
  backgroundColor: theme.colors.transparent,
221
222
  }} onPress={() => {
@@ -223,7 +224,7 @@ function DemoScreen({ navigation }) {
223
224
  }}>{selectedTheme ? 'Light' : 'Dark'}</_1.ButtonView>
224
225
 
225
226
 
226
- <_1.ButtonView underlayColor={theme.colors.transparent} style={{
227
+ <_1.ButtonView underlayColor={theme.colors.transparent} style={{
227
228
  color: theme.colors.accent,
228
229
  backgroundColor: theme.colors.transparent,
229
230
  }} onPress={() => {
@@ -231,8 +232,8 @@ function DemoScreen({ navigation }) {
231
232
  }}>Show Sheet</_1.ButtonView>
232
233
 
233
234
 
234
- </Box_1.default>
235
- <_1.BottomNavBar style={{
235
+ </Box_1.default>
236
+ <_1.BottomNavBar style={{
236
237
  borderTopLeftRadius: theme.dimens.space.md,
237
238
  borderTopRightRadius: theme.dimens.space.md,
238
239
  }} onSelect={setSelectedBottomBarId} selectedId={selectedBottombarId} options={[
@@ -255,7 +256,7 @@ function DemoScreen({ navigation }) {
255
256
  id: 'profile',
256
257
  title: 'Profile',
257
258
  icon: (0, utils_1.ReactWrapper)(<_1.PressableView>
258
- <Image_1.Avatar onPress={() => {
259
+ <Image_1.Avatar onPress={() => {
259
260
  setSelectedBottomBarId('profile');
260
261
  }} style={{
261
262
  borderColor: selectedBottombarId == 'profile' ?
@@ -266,36 +267,37 @@ function DemoScreen({ navigation }) {
266
267
  }}
267
268
  // iconName='user'
268
269
  iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4"/>
269
- </_1.PressableView>)
270
+ </_1.PressableView>)
270
271
  }
271
272
  ]} onDimens={(w, h) => {
272
273
  setBottombarHeight(h);
273
274
  console.log("bottomBarHeight", h);
274
275
  }}/>
275
276
 
276
- <Modal_1.BottomSheet title="About" visible={bottomsheetVisible} onDismiss={() => {
277
+ <Modal_1.BottomSheet title="About" visible={bottomsheetVisible} onDismiss={() => {
277
278
  setbottomsheetVisible(false);
278
279
  }}>
279
- <_1.TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</_1.TextView>
280
+ <_1.TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</_1.TextView>
280
281
 
281
- <_1.TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</_1.TextView>
282
- <_1.Expand title='Types' initialExpand={false} style={{
282
+ <_1.TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</_1.TextView>
283
+ <_1.Expand title='Types' initialExpand={false} style={{
283
284
  padding: 0,
284
285
  backgroundColor: theme.colors.forground
285
286
  }} titleBackgroundColor={theme.colors.forground}>
286
- <_1.VBox>
287
- <Message_1.AlertMessage text={alert} onDismiss={() => {
287
+ <_1.VBox>
288
+ <Message_1.AlertMessage text={alert} onDismiss={() => {
288
289
  react_native_1.LayoutAnimation.configureNext(react_native_1.LayoutAnimation.Presets.easeInEaseOut);
289
290
  setAlert('');
290
291
  }}/>
291
- <Message_1.AlertMessage text='Tyrannosaurus rex' type='critical'/>
292
- <Message_1.AlertMessage text='Spinosaurus' type='success'/>
293
- <Message_1.AlertMessage text='Ankylosaurs' type='warning'/>
294
- </_1.VBox>
292
+ <Message_1.AlertMessage text='Tyrannosaurus rex' type='critical'/>
293
+ <Message_1.AlertMessage text='Spinosaurus' type='success'/>
294
+ <Message_1.AlertMessage text='Ankylosaurs' type='warning'/>
295
+ </_1.VBox>
295
296
 
296
- </_1.Expand>
297
- </Modal_1.BottomSheet>
298
- </_1.VBox>);
297
+ </_1.Expand>
298
+ </Modal_1.BottomSheet>
299
+ </_1.VBox>
300
+ </react_native_safe_area_context_1.SafeAreaProvider>);
299
301
  }
300
302
  exports.DemoScreen = DemoScreen;
301
303
  //# sourceMappingURL=demo.js.map
package/dist/demo.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"demo.js","sourceRoot":"","sources":["../src/demo.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoE;AACpE,6CAA8B;AAC9B,+CAA6D;AAC7D,wBAAuO;AACvO,iFAAyD;AACzD,mFAAmE;AACnE,uCAAyC;AACzC,mCAAsC;AACtC,mCAAuC;AACvC,mCAAuC;AACvC,gDAA+C;AAC/C,qCAAmD;AAMnD,SAAgB,UAAU,CAAC,EAAE,UAAU,EAAmB;IAExD,MAAM,KAAK,GAAU,IAAA,kBAAU,EAAC,eAAY,CAAC,CAAA;IAC7C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IACxB,MAAM,OAAO,GAAG,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I,CACH;cAAA,CAAC,sBAAY,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE;YACzC,8BAAe,CAAC,aAAa,CAAC,8BAAe,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YACrE,QAAQ,CAAC,EAAE,CAAC,CAAA;QACd,CAAC,CAAC,EACF;cAAA,CAAC,sBAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,EACtD;cAAA,CAAC,sBAAY,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EAC/C;cAAA,CAAC,sBAAY,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EACjD;YAAA,EAAE,OAAI,CAER;;UAAA,EAAE,SAAM,CACV;QAAA,EAAE,mBAAW,CACf;MAAA,EAAE,OAAI,CACR;IAAA,EAAE,iDAAgB,CAAC,CACpB,CAAC;AACJ,CAAC;AA/WD,gCA+WC"}
package/dist/index.d.ts CHANGED
@@ -5,4 +5,7 @@ export * from './Modal';
5
5
  export * from './Image';
6
6
  export * from './Input';
7
7
  export * from './Bar';
8
+ export * from './utils';
9
+ export * from './Styles';
10
+ export * from './demo';
8
11
  export * from './ThemeContext';
package/dist/index.js CHANGED
@@ -21,5 +21,8 @@ __exportStar(require("./Modal"), exports);
21
21
  __exportStar(require("./Image"), exports);
22
22
  __exportStar(require("./Input"), exports);
23
23
  __exportStar(require("./Bar"), exports);
24
+ __exportStar(require("./utils"), exports);
25
+ __exportStar(require("./Styles"), exports);
26
+ __exportStar(require("./demo"), exports);
24
27
  __exportStar(require("./ThemeContext"), exports);
25
28
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,yCAAuB;AACvB,iDAA+B"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
- "release": "git add src && git add package.json && git commit -m Update-files | npm version patch && npm publish && git add package.json && git commit -m Update-version | git push",
7
+ "release": "npm run build && git add src && git add package.json && git commit -m Update-files | npm version patch && npm publish && git add package.json && git commit -m Update-version | git push",
8
8
  "build": "tsc --build --verbose",
9
9
  "test": "echo Skipping..."
10
10
  },
package/src/demo.tsx CHANGED
@@ -3,7 +3,7 @@ import * as React from 'react'
3
3
  import { LayoutAnimation, SafeAreaView } from 'react-native';
4
4
  import { BottomNavBar, ButtonView, Caption, Center, CompositeTextInputView, Expand, HBox, LoadingButton, PressableView, RightIconButton, SimpleToolbar, Subtitle, TextInputView, TextView, Theme, ThemeContext, Title, VBox } from '.';
5
5
  import FontAwesome from '@expo/vector-icons/FontAwesome';
6
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
+ import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-context';
7
7
  import { AlertMessage } from './Message';
8
8
  import { BottomSheet } from './Modal';
9
9
  import { Avatar, Icon } from './Image';
@@ -44,340 +44,342 @@ export function DemoScreen({ navigation }: DemoScreenProps) {
44
44
  const [, forceUpdate] = useReducer(x => x + 1, 0);
45
45
 
46
46
  return (
47
- <VBox
48
- style={{
49
- backgroundColor: theme.colors.background,
50
- padding: 0,
51
- paddingBottom: bottomBarHeight,
52
- margin: 0,
53
- height: '100%'
54
- }} >
55
- <SimpleToolbar
56
- title="Demo"
57
- homeIcon={
58
- ReactWrapper(<Icon color={theme.colors.invert.text} name="plus" />)
59
- }
60
- options={[
61
- {
62
- id: 'test',
63
- icon: 'gear',
64
- onClick: (id) => {
65
- }
66
- },
67
- {
68
- id: 'test2',
69
- icon: ReactWrapper(<PressableView>
70
- <Avatar
71
- style={{
72
- margin: 0,
73
- height: theme.dimens?.icon?.md * 1.25,
74
- width: theme.dimens?.icon?.md * 1.25,
75
- }}
76
- iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4" />
77
- </PressableView>),
78
- onClick: (id) => {
79
- }
80
- }
81
- ]} />
82
- <KeyboardAvoidingScrollView
83
- automaticallyAdjustKeyboardInsets={true}
84
- keyboardShouldPersistTaps={'handled'}
47
+ <SafeAreaProvider>
48
+ <VBox
85
49
  style={{
86
- flexGrow: 1,
87
- }}
88
- nestedScrollEnabled={true}
89
- showsHorizontalScrollIndicator={false}
90
- showsVerticalScrollIndicator={false}
91
- >
50
+ backgroundColor: theme.colors.background,
51
+ padding: 0,
52
+ paddingBottom: bottomBarHeight,
53
+ margin: 0,
54
+ height: '100%'
55
+ }} >
56
+ <SimpleToolbar
57
+ title="Demo"
58
+ homeIcon={
59
+ ReactWrapper(<Icon color={theme.colors.invert.text} name="plus" />)
60
+ }
61
+ options={[
62
+ {
63
+ id: 'test',
64
+ icon: 'gear',
65
+ onClick: (id) => {
66
+ }
67
+ },
68
+ {
69
+ id: 'test2',
70
+ icon: ReactWrapper(<PressableView>
71
+ <Avatar
72
+ style={{
73
+ margin: 0,
74
+ height: theme.dimens?.icon?.md * 1.25,
75
+ width: theme.dimens?.icon?.md * 1.25,
76
+ }}
77
+ iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4" />
78
+ </PressableView>),
79
+ onClick: (id) => {
80
+ }
81
+ }
82
+ ]} />
83
+ <KeyboardAvoidingScrollView
84
+ automaticallyAdjustKeyboardInsets={true}
85
+ keyboardShouldPersistTaps={'handled'}
86
+ style={{
87
+ flexGrow: 1,
88
+ }}
89
+ nestedScrollEnabled={true}
90
+ showsHorizontalScrollIndicator={false}
91
+ showsVerticalScrollIndicator={false}
92
+ >
92
93
 
93
- <Center style={{
94
- flexDirection: 'row',
95
- padding: 20
96
- }}>
94
+ <Center style={{
95
+ flexDirection: 'row',
96
+ padding: 20
97
+ }}>
97
98
 
98
- <Avatar
99
- onPress={() => {
100
- setbottomsheetVisible(true)
101
- }}
102
- style={{
103
- borderColor: theme.colors.success,
104
- }}
105
- iconNameProps={{
106
- name: 'user',
107
- color: theme.colors.success,
108
- size: theme.dimens.icon.lg
109
- }}
110
- />
111
- <Center>
112
99
  <Avatar
113
- style={{
114
- borderWidth: theme.dimens.space.sm,
115
- width: 100,
116
- height: 100,
117
- borderColor: theme.colors.success
118
- }}
119
- iconText='SN'
120
100
  onPress={() => {
121
101
  setbottomsheetVisible(true)
122
102
  }}
103
+ style={{
104
+ borderColor: theme.colors.success,
105
+ }}
123
106
  iconNameProps={{
124
107
  name: 'user',
125
108
  color: theme.colors.success,
126
109
  size: theme.dimens.icon.lg
127
110
  }}
128
- iconUrl='https://cdn.truelancer.com/user-picture/307510-5c1f11bad82e9.jpg' />
129
- <Subtitle>{mText}</Subtitle>
130
- </Center>
131
-
132
- <Avatar
133
- style={{
134
- borderColor: theme.colors.success,
135
- color: theme.colors.success
136
- }}
137
- onPress={() => {
138
- setbottomsheetVisible(true)
139
- }}
140
- iconText='SN' />
141
- </Center>
142
- <Expand title='Message Alert' initialExpand={false}
143
- style={{
144
- backgroundColor: theme.colors.forground
145
- }}
146
- titleBackgroundColor={theme.colors.forground}
147
- >
148
- <VBox>
149
- <AlertMessage text={alert} onDismiss={() => {
150
- LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
151
- setAlert('')
152
- }} />
153
- <AlertMessage text='Critial Message' type='critical' />
154
- <AlertMessage text='Success' type='success' />
155
- <AlertMessage text='Warning Message' type='warning' />
156
- </VBox>
157
-
158
- </Expand>
159
- <Expand
160
- style={{
161
- padding: 0,
162
- borderWidth: 0.1,
163
- borderColor: '#DCDCDC'
164
- }}
165
- duration={200}
166
- title='In this version, the icon used is always chevron-right even when expanded. In this version, the icon used is always chevron-right even when expanded.'
167
- initialExpand={false} iconPosition='right'>
168
- <VBox>
169
- <Title>Text A</Title>
170
- <Subtitle>Text A Text A Text AText A Text AText A</Subtitle>
171
- <TextView>Text A</TextView>
172
- <Caption>Text Caption</Caption>
173
- </VBox>
174
- </Expand>
175
- <Expand title='Inputs'>
111
+ />
112
+ <Center>
113
+ <Avatar
114
+ style={{
115
+ borderWidth: theme.dimens.space.sm,
116
+ width: 100,
117
+ height: 100,
118
+ borderColor: theme.colors.success
119
+ }}
120
+ iconText='SN'
121
+ onPress={() => {
122
+ setbottomsheetVisible(true)
123
+ }}
124
+ iconNameProps={{
125
+ name: 'user',
126
+ color: theme.colors.success,
127
+ size: theme.dimens.icon.lg
128
+ }}
129
+ iconUrl='https://cdn.truelancer.com/user-picture/307510-5c1f11bad82e9.jpg' />
130
+ <Subtitle>{mText}</Subtitle>
131
+ </Center>
176
132
 
177
- <VBox>
178
- <TextInputView
179
- style={{
180
- fontFamily: theme.fonts.Bold
181
- }}
182
- initialText={mText}
183
- value={mText}
184
- onChangeText={t => setMText(t)} />
185
- <CompositeTextInputView
186
- onChangeText={t => setMText(t)}
187
- placeholder='A test'
188
- initialText='Test' />
189
- <CompositeTextInputView
190
- inputMode='decimal'
191
- icon={"close"}
133
+ <Avatar
192
134
  style={{
135
+ borderColor: theme.colors.success,
136
+ color: theme.colors.success
193
137
  }}
194
- alertTextColor={theme.colors.warning}
195
- placeholder='Enter your name'
196
- initialText='Test'
197
- value={mText}
198
- onChangeText={t => setMText(t)} />
199
- <CompositeTextInputView
200
- style={{
138
+ onPress={() => {
139
+ setbottomsheetVisible(true)
201
140
  }}
202
- placeholder='Enter number'
203
- alertText={mText?.indexOf("@") > -1 ? '' : 'Please enter @ or else I am gonna come down at your place and mess you up buddy !'}
204
- initialText='Test'
205
- value={mText}
206
- onChangeText={t => setMText(t)} />
207
- </VBox>
208
- </Expand>
209
-
210
- <Expand
211
- iconStyle={{
212
- name: 'chevron-right',
213
- color: 'red'
214
- }}
215
- title='Buttons'
216
- initialExpand={false}>
217
- <VBox style={{
218
- }}>
219
- <VBox >
220
- <ButtonView
221
- icon={btnIcon}
222
- style={{
223
- }}>Button Icon</ButtonView>
224
-
225
- <ButtonView style={{
226
- }}>Button Text</ButtonView>
141
+ iconText='SN' />
142
+ </Center>
143
+ <Expand title='Message Alert' initialExpand={false}
144
+ style={{
145
+ backgroundColor: theme.colors.forground
146
+ }}
147
+ titleBackgroundColor={theme.colors.forground}
148
+ >
149
+ <VBox>
150
+ <AlertMessage text={alert} onDismiss={() => {
151
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
152
+ setAlert('')
153
+ }} />
154
+ <AlertMessage text='Critial Message' type='critical' />
155
+ <AlertMessage text='Success' type='success' />
156
+ <AlertMessage text='Warning Message' type='warning' />
227
157
  </VBox>
228
- <RightIconButton
229
- text='Click Me Icon'
230
- icon={btnIcon}>
231
- </RightIconButton>
232
158
 
233
- <Center>
234
- <LoadingButton
159
+ </Expand>
160
+ <Expand
161
+ style={{
162
+ padding: 0,
163
+ borderWidth: 0.1,
164
+ borderColor: '#DCDCDC'
165
+ }}
166
+ duration={200}
167
+ title='In this version, the icon used is always chevron-right even when expanded. In this version, the icon used is always chevron-right even when expanded.'
168
+ initialExpand={false} iconPosition='right'>
169
+ <VBox>
170
+ <Title>Text A</Title>
171
+ <Subtitle>Text A Text A Text AText A Text AText A</Subtitle>
172
+ <TextView>Text A</TextView>
173
+ <Caption>Text Caption</Caption>
174
+ </VBox>
175
+ </Expand>
176
+ <Expand title='Inputs'>
235
177
 
236
- onPress={(e) => {
237
- setLoading(!loading)
178
+ <VBox>
179
+ <TextInputView
180
+ style={{
181
+ fontFamily: theme.fonts.Bold
238
182
  }}
239
- loading={loading}
240
- text='Click Me' />
241
-
242
- <ButtonView
243
- underlayColor={theme.colors.transparent}
183
+ initialText={mText}
184
+ value={mText}
185
+ onChangeText={t => setMText(t)} />
186
+ <CompositeTextInputView
187
+ onChangeText={t => setMText(t)}
188
+ placeholder='A test'
189
+ initialText='Test' />
190
+ <CompositeTextInputView
191
+ inputMode='decimal'
192
+ icon={"close"}
193
+ style={{
194
+ }}
195
+ alertTextColor={theme.colors.warning}
196
+ placeholder='Enter your name'
197
+ initialText='Test'
198
+ value={mText}
199
+ onChangeText={t => setMText(t)} />
200
+ <CompositeTextInputView
244
201
  style={{
245
- color: theme.colors.accent,
246
- backgroundColor: theme.colors.transparent,
247
- }}>Tertiary button</ButtonView>
202
+ }}
203
+ placeholder='Enter number'
204
+ alertText={mText?.indexOf("@") > -1 ? '' : 'Please enter @ or else I am gonna come down at your place and mess you up buddy !'}
205
+ initialText='Test'
206
+ value={mText}
207
+ onChangeText={t => setMText(t)} />
208
+ </VBox>
209
+ </Expand>
248
210
 
249
- </Center>
211
+ <Expand
212
+ iconStyle={{
213
+ name: 'chevron-right',
214
+ color: 'red'
215
+ }}
216
+ title='Buttons'
217
+ initialExpand={false}>
218
+ <VBox style={{
219
+ }}>
220
+ <VBox >
221
+ <ButtonView
222
+ icon={btnIcon}
223
+ style={{
224
+ }}>Button Icon</ButtonView>
225
+
226
+ <ButtonView style={{
227
+ }}>Button Text</ButtonView>
228
+ </VBox>
229
+ <RightIconButton
230
+ text='Click Me Icon'
231
+ icon={btnIcon}>
232
+ </RightIconButton>
250
233
 
251
- <Expand title='Nested expand'>
252
- <HBox style={{
253
- justifyContent: 'center',
254
- }}>
234
+ <Center>
255
235
  <LoadingButton
256
- style={{
257
- width: 'auto'
258
- }}
236
+
259
237
  onPress={(e) => {
260
238
  setLoading(!loading)
261
239
  }}
262
240
  loading={loading}
263
- text='Click Me left' />
264
- <LoadingButton
265
- loaderStyle='transparent'
241
+ text='Click Me' />
242
+
243
+ <ButtonView
244
+ underlayColor={theme.colors.transparent}
266
245
  style={{
267
- width: 'auto'
268
- }}
269
- onPress={(e) => {
270
- setLoading(!loading)
271
- }}
272
- loading={loading}
273
- text='Click Me right' />
274
- </HBox>
275
- </Expand>
246
+ color: theme.colors.accent,
247
+ backgroundColor: theme.colors.transparent,
248
+ }}>Tertiary button</ButtonView>
276
249
 
277
- </VBox>
278
- </Expand>
250
+ </Center>
279
251
 
252
+ <Expand title='Nested expand'>
253
+ <HBox style={{
254
+ justifyContent: 'center',
255
+ }}>
256
+ <LoadingButton
257
+ style={{
258
+ width: 'auto'
259
+ }}
260
+ onPress={(e) => {
261
+ setLoading(!loading)
262
+ }}
263
+ loading={loading}
264
+ text='Click Me left' />
265
+ <LoadingButton
266
+ loaderStyle='transparent'
267
+ style={{
268
+ width: 'auto'
269
+ }}
270
+ onPress={(e) => {
271
+ setLoading(!loading)
272
+ }}
273
+ loading={loading}
274
+ text='Click Me right' />
275
+ </HBox>
276
+ </Expand>
280
277
 
278
+ </VBox>
279
+ </Expand>
281
280
 
282
- <ButtonView
283
- underlayColor={theme.colors.transparent}
284
- style={{
285
- color: theme.colors.accent,
286
- backgroundColor: theme.colors.transparent,
287
- }}
288
- onPress={() => {
289
- setSelectedTheme(!selectedTheme)
290
- }}>{selectedTheme ? 'Light' : 'Dark'}</ButtonView>
291
281
 
292
282
 
293
- <ButtonView
294
- underlayColor={theme.colors.transparent}
295
- style={{
296
- color: theme.colors.accent,
297
- backgroundColor: theme.colors.transparent,
298
- }}
299
- onPress={() => {
300
- setbottomsheetVisible(true)
301
- }}>Show Sheet</ButtonView>
283
+ <ButtonView
284
+ underlayColor={theme.colors.transparent}
285
+ style={{
286
+ color: theme.colors.accent,
287
+ backgroundColor: theme.colors.transparent,
288
+ }}
289
+ onPress={() => {
290
+ setSelectedTheme(!selectedTheme)
291
+ }}>{selectedTheme ? 'Light' : 'Dark'}</ButtonView>
302
292
 
303
293
 
304
- </KeyboardAvoidingScrollView>
305
- <BottomNavBar
306
- style={{
307
- borderTopLeftRadius: theme.dimens.space.md,
308
- borderTopRightRadius: theme.dimens.space.md,
309
- }}
310
- onSelect={setSelectedBottomBarId}
311
- selectedId={selectedBottombarId}
312
- options={[
313
- {
314
- id: 'home',
315
- title: 'Home',
316
- icon: 'home'
317
- },
318
- {
319
- id: 'create',
320
- title: 'Create',
321
- icon: 'plus'
322
- },
323
- {
324
- id: 'search',
325
- title: 'Search',
326
- icon: 'search'
327
- },
328
- {
329
- id: 'profile',
330
- title: 'Profile',
331
- icon: ReactWrapper(<PressableView>
332
- <Avatar
333
- onPress={() => {
334
- setSelectedBottomBarId('profile')
335
- }}
336
- style={{
337
- borderColor: selectedBottombarId == 'profile' ?
338
- theme.colors.accent : theme.colors.caption,
339
- margin: 0,
340
- height: theme.dimens?.icon?.md,
341
- width: theme.dimens?.icon?.md,
342
- }}
343
- // iconName='user'
344
- iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4"
345
- />
346
- </PressableView>)
347
- }
348
- ]}
349
- onDimens={(w, h) => {
350
- setBottombarHeight(h)
351
- console.log("bottomBarHeight", h)
352
- }} />
294
+ <ButtonView
295
+ underlayColor={theme.colors.transparent}
296
+ style={{
297
+ color: theme.colors.accent,
298
+ backgroundColor: theme.colors.transparent,
299
+ }}
300
+ onPress={() => {
301
+ setbottomsheetVisible(true)
302
+ }}>Show Sheet</ButtonView>
353
303
 
354
- <BottomSheet
355
- title="About"
356
- visible={bottomsheetVisible} onDismiss={() => {
357
- setbottomsheetVisible(false)
358
- }} >
359
- <TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</TextView>
360
304
 
361
- <TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</TextView>
362
- <Expand title='Types' initialExpand={false}
305
+ </KeyboardAvoidingScrollView>
306
+ <BottomNavBar
363
307
  style={{
364
- padding: 0,
365
- backgroundColor: theme.colors.forground
308
+ borderTopLeftRadius: theme.dimens.space.md,
309
+ borderTopRightRadius: theme.dimens.space.md,
366
310
  }}
367
- titleBackgroundColor={theme.colors.forground}
368
- >
369
- <VBox>
370
- <AlertMessage text={alert} onDismiss={() => {
371
- LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
372
- setAlert('')
373
- }} />
374
- <AlertMessage text='Tyrannosaurus rex' type='critical' />
375
- <AlertMessage text='Spinosaurus' type='success' />
376
- <AlertMessage text='Ankylosaurs' type='warning' />
377
- </VBox>
311
+ onSelect={setSelectedBottomBarId}
312
+ selectedId={selectedBottombarId}
313
+ options={[
314
+ {
315
+ id: 'home',
316
+ title: 'Home',
317
+ icon: 'home'
318
+ },
319
+ {
320
+ id: 'create',
321
+ title: 'Create',
322
+ icon: 'plus'
323
+ },
324
+ {
325
+ id: 'search',
326
+ title: 'Search',
327
+ icon: 'search'
328
+ },
329
+ {
330
+ id: 'profile',
331
+ title: 'Profile',
332
+ icon: ReactWrapper(<PressableView>
333
+ <Avatar
334
+ onPress={() => {
335
+ setSelectedBottomBarId('profile')
336
+ }}
337
+ style={{
338
+ borderColor: selectedBottombarId == 'profile' ?
339
+ theme.colors.accent : theme.colors.caption,
340
+ margin: 0,
341
+ height: theme.dimens?.icon?.md,
342
+ width: theme.dimens?.icon?.md,
343
+ }}
344
+ // iconName='user'
345
+ iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4"
346
+ />
347
+ </PressableView>)
348
+ }
349
+ ]}
350
+ onDimens={(w, h) => {
351
+ setBottombarHeight(h)
352
+ console.log("bottomBarHeight", h)
353
+ }} />
354
+
355
+ <BottomSheet
356
+ title="About"
357
+ visible={bottomsheetVisible} onDismiss={() => {
358
+ setbottomsheetVisible(false)
359
+ }} >
360
+ <TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</TextView>
361
+
362
+ <TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</TextView>
363
+ <Expand title='Types' initialExpand={false}
364
+ style={{
365
+ padding: 0,
366
+ backgroundColor: theme.colors.forground
367
+ }}
368
+ titleBackgroundColor={theme.colors.forground}
369
+ >
370
+ <VBox>
371
+ <AlertMessage text={alert} onDismiss={() => {
372
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
373
+ setAlert('')
374
+ }} />
375
+ <AlertMessage text='Tyrannosaurus rex' type='critical' />
376
+ <AlertMessage text='Spinosaurus' type='success' />
377
+ <AlertMessage text='Ankylosaurs' type='warning' />
378
+ </VBox>
378
379
 
379
- </Expand>
380
- </BottomSheet>
381
- </VBox>
380
+ </Expand>
381
+ </BottomSheet>
382
+ </VBox>
383
+ </SafeAreaProvider>
382
384
  );
383
385
  }