Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
21_22-J 38
21_22-J 38
Commits
d996a723
Commit
d996a723
authored
Feb 08, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import Permissions and AudioRecord
parent
afddda94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
frontend/App.js
frontend/App.js
+2
-0
frontend/android/app/src/main/AndroidManifest.xml
frontend/android/app/src/main/AndroidManifest.xml
+8
-0
frontend/src/screen/activity/Blue.js
frontend/src/screen/activity/Blue.js
+4
-0
No files found.
frontend/App.js
View file @
d996a723
...
...
@@ -10,6 +10,8 @@ import {
}
from
"
react-native
"
;
import
{
LogBox
}
from
'
react-native
'
;
LogBox
.
ignoreLogs
([
'
Reanimated 2
'
]);
LogBox
.
ignoreLogs
([
'
new NativeEventEmitter
'
]);
// Ignore log notification by message
LogBox
.
ignoreAllLogs
();
//Ignore all log notifications
// import Home from "./src/screen/Home";
// import Login from "./src/screen/auth/Login"
...
...
frontend/android/app/src/main/AndroidManifest.xml
View file @
d996a723
...
...
@@ -2,6 +2,14 @@
package=
"com.firstapp"
>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.RECORD_AUDIO"
/>
<uses-permission
android:name=
"android.permission.MICROPHONE"
/>
<uses-permission
android:name=
"android.permission.MODIFY_AUDIO_SETTINGS"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"com.huawei.appmarket.service.commondata.permission.GET_COMMON_DATA"
/>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/>
<application
android:name=
".MainApplication"
...
...
frontend/src/screen/activity/Blue.js
View file @
d996a723
...
...
@@ -18,6 +18,10 @@ import {
Image
}
from
'
react-native
'
import
Permissions
from
'
react-native-permissions
'
;
import
AudioRecord
from
'
react-native-audio-record
'
;
import
axios
from
"
axios
"
;
export
default
function
Blue
(
color
)
{
const
navigation
=
useNavigation
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment