Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MobileScreenReadersApi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
public_accessibility_software
MobileScreenReadersApi
Commits
38d940ef
Commit
38d940ef
authored
May 03, 2020
by
Paolo Pecis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add correct RNHideFocus
parent
a3dc0db8
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7073 additions
and
0 deletions
+7073
-0
assets.json
HideFocus/RNHideFocus/.expo-shared/assets.json
+4
-0
.gitignore
HideFocus/RNHideFocus/.gitignore
+14
-0
App.js
HideFocus/RNHideFocus/App.js
+79
-0
app.json
HideFocus/RNHideFocus/app.json
+28
-0
icon.png
HideFocus/RNHideFocus/assets/icon.png
+0
-0
splash.png
HideFocus/RNHideFocus/assets/splash.png
+0
-0
babel.config.js
HideFocus/RNHideFocus/babel.config.js
+6
-0
package-lock.json
HideFocus/RNHideFocus/package-lock.json
+6920
-0
package.json
HideFocus/RNHideFocus/package.json
+22
-0
No files found.
HideFocus/RNHideFocus/.expo-shared/assets.json
0 → 100644
View file @
38d940ef
{
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb"
:
true
,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd"
:
true
}
HideFocus/RNHideFocus/.gitignore
0 → 100644
View file @
38d940ef
node_modules/**/*
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
web-report/
# macOS
.DS_Store
HideFocus/RNHideFocus/App.js
0 → 100644
View file @
38d940ef
import
React
from
'react'
;
import
{
StyleSheet
,
Text
,
View
,
TouchableOpacity
}
from
'react-native'
;
function
changeText
(){
console
.
log
(
"PIPPO"
);
}
export
default
class
App
extends
React
.
Component
{
state
=
{
buttonText
:
"BUTTON 2"
,
accessible
:
true
}
changeText
(){
this
.
setState
({
buttonText
:
"PIPPO2"
})
}
hideFocus
(){
console
.
log
(
"Button clicked"
)
this
.
setState
({
accessible
:
false
,
buttonText
:
"BUTTON 2: I am no more focusable"
})
}
render
(){
return
(
<>
<
View
style
=
{
styles
.
header
}
>
<
Text
style
=
{
styles
.
headerText
}
>
RNHideFocus
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
container
}
>
<
View
>
<
TouchableOpacity
style
=
{
styles
.
button
}
onPress
=
{()
=>
this
.
hideFocus
()}
>
<
Text
>
Press
to
make
BUTTON
2
unfocusable
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
View
>
<
TouchableOpacity
style
=
{
styles
.
button
}
>
<
Text
>
BUTTON
1
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
View
importantForAccessibility
=
{
this
.
state
.
accessible
?
"yes"
:
"no-hide-descendants"
}
accessible
=
{
this
.
state
.
accessible
}
>
<
TouchableOpacity
backgroundColor
=
""
style
=
{
styles
.
button
}
importantForAccessibility
=
{
this
.
state
.
accessible
?
"yes"
:
"no-hide-descendants"
}
accessible
=
{
this
.
state
.
accessible
}
>
<
Text
importantForAccessibility
=
{
this
.
state
.
accessible
?
"yes"
:
"no-hide-descendants"
}
accessible
=
{
this
.
state
.
accessible
}
>
{
this
.
state
.
buttonText
}
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/
>
);
}
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
backgroundColor
:
'#fff'
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
},
button
:
{
alignItems
:
'center'
,
backgroundColor
:
'#DDDDDD'
,
padding
:
10
,
marginBottom
:
20
,
},
header
:
{
backgroundColor
:
'#008577'
,
paddingHorizontal
:
20
,
paddingVertical
:
20
,
marginTop
:
20
,
},
headerText
:
{
color
:
'white'
,
},
});
HideFocus/RNHideFocus/app.json
0 → 100644
View file @
38d940ef
{
"expo"
:
{
"name"
:
"RNHideFocus"
,
"slug"
:
"RNHideFocus"
,
"platforms"
:
[
"ios"
,
"android"
,
"web"
],
"version"
:
"1.0.0"
,
"orientation"
:
"portrait"
,
"icon"
:
"./assets/icon.png"
,
"splash"
:
{
"image"
:
"./assets/splash.png"
,
"resizeMode"
:
"contain"
,
"backgroundColor"
:
"#ffffff"
},
"updates"
:
{
"fallbackToCacheTimeout"
:
0
},
"assetBundlePatterns"
:
[
"**/*"
],
"ios"
:
{
"supportsTablet"
:
true
}
}
}
HideFocus/RNHideFocus/assets/icon.png
0 → 100644
View file @
38d940ef
642 Bytes
HideFocus/RNHideFocus/assets/splash.png
0 → 100644
View file @
38d940ef
9.09 KB
HideFocus/RNHideFocus/babel.config.js
0 → 100644
View file @
38d940ef
module
.
exports
=
function
(
api
)
{
api
.
cache
(
true
);
return
{
presets
:
[
'babel-preset-expo'
],
};
};
HideFocus/RNHideFocus/package-lock.json
0 → 100644
View file @
38d940ef
This diff is collapsed.
Click to expand it.
HideFocus/RNHideFocus/package.json
0 → 100644
View file @
38d940ef
{
"main"
:
"node_modules/expo/AppEntry.js"
,
"scripts"
:
{
"start"
:
"expo start"
,
"android"
:
"expo start --android"
,
"ios"
:
"expo start --ios"
,
"web"
:
"expo start --web"
,
"eject"
:
"expo eject"
},
"dependencies"
:
{
"expo"
:
"~37.0.3"
,
"react"
:
"~16.9.0"
,
"react-dom"
:
"~16.9.0"
,
"react-native"
:
"https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz"
,
"react-native-web"
:
"~0.11.7"
},
"devDependencies"
:
{
"babel-preset-expo"
:
"~8.1.0"
,
"@babel/core"
:
"^7.8.6"
},
"private"
:
true
}
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