Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
145
Issues
145
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
b29b800d
Commit
b29b800d
authored
20 hours ago
by
Martin Santangelo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) copy/paste issue on android
parent
78c2b7d4
feat/fix-android-copy-paste-issue
1 merge request
!296
[Sprint/KiltedKoala] (fix) copy/paste issue on android
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
2 deletions
+37
-2
CapturePoster.js.snap
__tests__/capture/__snapshots__/CapturePoster.js.snap
+1
-1
CapturePoster.js
src/capture/CapturePoster.js
+3
-1
TextInput.js
src/common/components/TextInput.js
+33
-0
No files found.
__tests__/capture/__snapshots__/CapturePoster.js.snap
View file @
b29b800d
...
...
@@ -30,7 +30,7 @@ exports[`cature poster component should renders correctly 1`] = `
>
<TextInput
allowFontScaling={true}
editable={
tru
e}
editable={
fals
e}
multiline={true}
onChangeText={[Function]}
onSelectionChange={[Function]}
...
...
This diff is collapsed.
Click to expand it.
src/capture/CapturePoster.js
View file @
b29b800d
...
...
@@ -3,7 +3,6 @@ import {
StyleSheet
,
View
,
ScrollView
,
TextInput
,
Text
,
Alert
,
Button
,
...
...
@@ -39,6 +38,9 @@ import logService from '../common/services/log.service';
import
i18n
from
'
../common/services/i18n.service
'
;
import
settingsStore
from
'
../settings/SettingsStore
'
;
// workaround for android copy/paste
import
TextInput
from
'
../common/components/TextInput
'
;
@
inject
(
'
user
'
,
'
capture
'
)
@
observer
export
default
class
CapturePoster
extends
Component
{
...
...
This diff is collapsed.
Click to expand it.
src/common/components/TextInput.js
0 → 100644
View file @
b29b800d
import
React
,
{
Component
}
from
'
react
'
;
import
{
TextInput
}
from
'
react-native
'
;
/**
* Workaround for copy/paste issue on android
* https://github.com/facebook/react-native/issues/20887
*/
export
default
class
AlternativeTextInput
extends
React
.
Component
<
Props
,
State
>
{
static
defaultProps
=
{
editable
:
true
,
}
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
editable
:
!
props
.
editable
};
}
componentDidMount
()
{
if
(
this
.
props
.
editable
)
{
setTimeout
(()
=>
{
this
.
setState
({
editable
:
true
});
},
100
);
}
}
render
()
{
const
{
editable
}
=
this
.
state
;
return
<
TextInput
{...
this
.
props
}
editable
=
{
editable
}
/>
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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