Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
modified ocrText module
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddhaNag12 committed Jan 18, 2021
1 parent 5eb98e4 commit 983d90c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
Binary file added assets/myPic.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions bugFix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Modify these files can avoid require cycle:
IN DIR rn-fetch-blob/polyfill
all thease 4 files: Blob.js, Fetch.js, FileReader.js, XMLHttpRequest.js

// import RNFetchBlob from '../index.js'
import {NativeModules} from 'react-native';
const RNFetchBlob = NativeModules.RNFetchBlob
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {AppRegistry} from 'react-native';
import App from './src/router/Navigate';
import App from './src/Router/Navigate';
import {name as appName} from './app.json';

AppRegistry.registerComponent(appName, () => App);
30 changes: 14 additions & 16 deletions src/screens/OcrText.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Clipboard from '@react-native-community/clipboard';
import CameraRoll from '@react-native-community/cameraroll';
import {captureRef} from 'react-native-view-shot';
import ViewShot from 'react-native-view-shot';
import {ScrollView} from 'react-native-gesture-handler';

const OcrText = ({route, navigation}) => {
const {text} = route.params;
Expand Down Expand Up @@ -118,22 +119,19 @@ const OcrText = ({route, navigation}) => {
</TouchableOpacity>
</View>
<ViewShot ref={ViewRef} options={{format: 'jpg', quality: 1}}>
<TextInput
scrollEnabled={true}
style={{
fontSize: 20,
lineHeight: 40,
fontFamily: 'Roboto',
color: 'white',
padding: 10,
}}
value={text}
multiline={true}
editable={true}
showSoftInputOnFocus={false}
caretHidden={true}
selectionColor="#FF7772"
/>
<ScrollView>
<Text
selectable
style={{
fontSize: 20,
lineHeight: 40,
fontFamily: 'Roboto',
color: 'white',
padding: 10,
}}>
{text}
</Text>
</ScrollView>
</ViewShot>
</View>
);
Expand Down
10 changes: 3 additions & 7 deletions src/screens/drawers/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,15 @@ const ImageHeading = () => {
};

const AboutMeAvatar = () => {
const myImage=require('../../../assets/myPic.jpeg');

return (
<View>
<View style={{...styles.headingWrapper}}>
<Text style={{...styles.h3}}>About The Developer</Text>
</View>
<View style={{...styles.aboutWrapper}}>
<Avatar
rounded
source={{
uri:
'https://scontent.fgau2-1.fna.fbcdn.net/v/t1.0-9/106093797_3105706246172854_6244516452109243435_n.jpg?_nc_cat=105&_nc_sid=09cbfe&_nc_ohc=Cm3f2moh4ZgAX8tBqRI&_nc_ht=scontent.fgau2-1.fna&oh=e1f2ff3f30c72c9649c0050e68b61a88&oe=5F572093',
}}
/>
<Image source={myImage} style={{width:100,height:100,resizeMode:"contain",borderRadius:30}}/>
<Text
style={{...styles.h2}}
onPress={() =>
Expand Down

0 comments on commit 983d90c

Please sign in to comment.