Skip to content

Commit d4e5346

Browse files
Merge pull request #96 from SimformSolutionsPvtLtd/develop
Preview update v2.1.0
2 parents b7e2b70 + 0c58b73 commit d4e5346

File tree

11 files changed

+13
-21
lines changed

11 files changed

+13
-21
lines changed

assets/audio_playback.gif

-8.3 MB
Loading
-11.8 MB
Loading

assets/audio_record.gif

-9.61 MB
Loading

example/src/App.tsx

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import React, {
1919
import {
2020
ActivityIndicator,
2121
Image,
22-
ImageBackground,
2322
Linking,
2423
Pressable,
2524
ScrollView,
@@ -32,7 +31,7 @@ import {
3231
SafeAreaProvider,
3332
useSafeAreaInsets,
3433
} from 'react-native-safe-area-context';
35-
import { Gifs, Icons } from './assets';
34+
import { Icons } from './assets';
3635
import {
3736
generateAudioList,
3837
playbackSpeedSequence,
@@ -81,13 +80,7 @@ const RenderListItem = React.memo(
8180
return (
8281
<View key={item.path} style={[styles.listItemContainer]}>
8382
<View style={styles.listItemWidth}>
84-
<ImageBackground
85-
source={
86-
item.fromCurrentUser
87-
? Gifs.audioBackground1
88-
: Gifs.audioBackground2
89-
}
90-
style={[styles.buttonContainer]}>
83+
<View style={[styles.buttonContainer]}>
9184
<Pressable
9285
disabled={isLoading}
9386
onPress={handleButtonAction}
@@ -116,7 +109,7 @@ const RenderListItem = React.memo(
116109
candleSpace={2}
117110
candleWidth={4}
118111
scrubColor={Colors.white}
119-
waveColor={Colors.gray}
112+
waveColor={Colors.lightWhite}
120113
candleHeightScale={4}
121114
onPlayerStateChange={state => {
122115
setPlayerState(state);
@@ -152,7 +145,7 @@ const RenderListItem = React.memo(
152145
) : (
153146
<Image style={styles.speedBox} source={Icons.logo} />
154147
)}
155-
</ImageBackground>
148+
</View>
156149
</View>
157150
</View>
158151
);
@@ -263,9 +256,7 @@ const AppContainer = () => {
263256
translucent
264257
/>
265258
<GestureHandlerRootView style={styles.appContainer}>
266-
<ImageBackground
267-
source={Gifs.appBackground}
268-
style={styles.screenBackground}>
259+
<View style={styles.screenBackground}>
269260
<View style={styles.container}>
270261
<View style={styles.simformImageContainer}>
271262
<Image
@@ -288,7 +279,7 @@ const AppContainer = () => {
288279
</ScrollView>
289280
</View>
290281
<LivePlayerComponent setList={setList} />
291-
</ImageBackground>
282+
</View>
292283
</GestureHandlerRootView>
293284
</View>
294285
);
-2.58 MB
Binary file not shown.
-4.53 MB
Binary file not shown.
-2.49 MB
Binary file not shown.

example/src/assets/gifs/index.ts

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

example/src/assets/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './audio';
2-
export * from './gifs';
32
export * from './icons';

example/src/styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const styles = (params: StyleSheetParams = {}) =>
3636
overflow: 'hidden',
3737
columnGap: scale(8),
3838
paddingHorizontal: scale(8),
39+
backgroundColor: params.currentUser ? Colors.darkGray : Colors.pink,
3940
},
4041
listItemContainer: {
4142
marginTop: scale(16),
@@ -47,6 +48,7 @@ const styles = (params: StyleSheetParams = {}) =>
4748
buttonImage: {
4849
height: scale(22),
4950
width: scale(22),
51+
tintColor: Colors.white,
5052
alignSelf: 'flex-end',
5153
},
5254
staticWaveformView: {
@@ -97,6 +99,8 @@ const styles = (params: StyleSheetParams = {}) =>
9799
width: scale(28),
98100
borderRadius: scale(14),
99101
justifyContent: 'center',
102+
tintColor: Colors.white,
103+
marginRight: scale(5),
100104
},
101105
whiteBackground: {
102106
backgroundColor: Colors.white,

0 commit comments

Comments
 (0)