Skip to content

Commit

Permalink
Merge pull request #96 from SimformSolutionsPvtLtd/develop
Browse files Browse the repository at this point in the history
Preview update v2.1.0
  • Loading branch information
mukesh-simform authored Sep 20, 2024
2 parents b7e2b70 + 0c58b73 commit d4e5346
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 21 deletions.
Binary file modified assets/audio_playback.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/audio_playback_with_speed.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/audio_record.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 6 additions & 15 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import React, {
import {
ActivityIndicator,
Image,
ImageBackground,
Linking,
Pressable,
ScrollView,
Expand All @@ -32,7 +31,7 @@ import {
SafeAreaProvider,
useSafeAreaInsets,
} from 'react-native-safe-area-context';
import { Gifs, Icons } from './assets';
import { Icons } from './assets';
import {
generateAudioList,
playbackSpeedSequence,
Expand Down Expand Up @@ -81,13 +80,7 @@ const RenderListItem = React.memo(
return (
<View key={item.path} style={[styles.listItemContainer]}>
<View style={styles.listItemWidth}>
<ImageBackground
source={
item.fromCurrentUser
? Gifs.audioBackground1
: Gifs.audioBackground2
}
style={[styles.buttonContainer]}>
<View style={[styles.buttonContainer]}>
<Pressable
disabled={isLoading}
onPress={handleButtonAction}
Expand Down Expand Up @@ -116,7 +109,7 @@ const RenderListItem = React.memo(
candleSpace={2}
candleWidth={4}
scrubColor={Colors.white}
waveColor={Colors.gray}
waveColor={Colors.lightWhite}
candleHeightScale={4}
onPlayerStateChange={state => {
setPlayerState(state);
Expand Down Expand Up @@ -152,7 +145,7 @@ const RenderListItem = React.memo(
) : (
<Image style={styles.speedBox} source={Icons.logo} />
)}
</ImageBackground>
</View>
</View>
</View>
);
Expand Down Expand Up @@ -263,9 +256,7 @@ const AppContainer = () => {
translucent
/>
<GestureHandlerRootView style={styles.appContainer}>
<ImageBackground
source={Gifs.appBackground}
style={styles.screenBackground}>
<View style={styles.screenBackground}>
<View style={styles.container}>
<View style={styles.simformImageContainer}>
<Image
Expand All @@ -288,7 +279,7 @@ const AppContainer = () => {
</ScrollView>
</View>
<LivePlayerComponent setList={setList} />
</ImageBackground>
</View>
</GestureHandlerRootView>
</View>
);
Expand Down
Binary file removed example/src/assets/gifs/appBackground.gif
Binary file not shown.
Binary file removed example/src/assets/gifs/audioBackgroundOne.gif
Binary file not shown.
Binary file removed example/src/assets/gifs/audioBackgroundTwo.gif
Binary file not shown.
5 changes: 0 additions & 5 deletions example/src/assets/gifs/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion example/src/assets/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './audio';
export * from './gifs';
export * from './icons';
4 changes: 4 additions & 0 deletions example/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const styles = (params: StyleSheetParams = {}) =>
overflow: 'hidden',
columnGap: scale(8),
paddingHorizontal: scale(8),
backgroundColor: params.currentUser ? Colors.darkGray : Colors.pink,
},
listItemContainer: {
marginTop: scale(16),
Expand All @@ -47,6 +48,7 @@ const styles = (params: StyleSheetParams = {}) =>
buttonImage: {
height: scale(22),
width: scale(22),
tintColor: Colors.white,
alignSelf: 'flex-end',
},
staticWaveformView: {
Expand Down Expand Up @@ -97,6 +99,8 @@ const styles = (params: StyleSheetParams = {}) =>
width: scale(28),
borderRadius: scale(14),
justifyContent: 'center',
tintColor: Colors.white,
marginRight: scale(5),
},
whiteBackground: {
backgroundColor: Colors.white,
Expand Down
3 changes: 3 additions & 0 deletions example/src/theme/Colors.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
const colors = {
white: '#ffffff',
lightWhite: '#ffffff80',
black: '#000000',
blue: '#05259b',
gray: '#808080',
darkGray: '#303437',
transparent: 'transparent',
waveStickBackground: '#989898',
waveStickCompleteBackground: '#7b7b7b',
pink: '#DD5F68',
lightPink: '#FFE5E8',
};

export default colors;

0 comments on commit d4e5346

Please sign in to comment.