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
17545e18
Commit
17545e18
authored
Apr 30, 2020
by
Niccolò Cantù
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add rn hide focus
parent
62cb5c5a
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7262 additions
and
0 deletions
+7262
-0
assets.json
HideFocus/RNHideFocus/.expo-shared/assets.json
+4
-0
.gitignore
HideFocus/RNHideFocus/.gitignore
+14
-0
App.js
HideFocus/RNHideFocus/App.js
+80
-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
+7100
-0
package.json
HideFocus/RNHideFocus/package.json
+30
-0
No files found.
HideFocus/RNHideFocus/.expo-shared/assets.json
0 → 100644
View file @
17545e18
{
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb"
:
true
,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd"
:
true
}
HideFocus/RNHideFocus/.gitignore
0 → 100644
View file @
17545e18
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 @
17545e18
import
'react-native-gesture-handler'
;
import
React
from
'react'
;
import
{
StyleSheet
,
Text
,
View
,
TouchableOpacity
,
Body
,
Header
,
Title
}
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
}
>
RNChangeFocus
<
/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
>
{
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 @
17545e18
{
"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 @
17545e18
642 Bytes
HideFocus/RNHideFocus/assets/splash.png
0 → 100644
View file @
17545e18
9.09 KB
HideFocus/RNHideFocus/babel.config.js
0 → 100644
View file @
17545e18
module
.
exports
=
function
(
api
)
{
api
.
cache
(
true
);
return
{
presets
:
[
'babel-preset-expo'
],
};
};
HideFocus/RNHideFocus/package-lock.json
0 → 100644
View file @
17545e18
This diff is collapsed.
Click to expand it.
HideFocus/RNHideFocus/package.json
0 → 100644
View file @
17545e18
{
"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"
:
{
"@react-native-community/masked-view"
:
"^0.1.6"
,
"@react-navigation/native"
:
"^5.1.7"
,
"@react-navigation/stack"
:
"^5.2.14"
,
"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-gesture-handler"
:
"~1.6.0"
,
"react-native-reanimated"
:
"~1.7.0"
,
"react-native-safe-area-context"
:
"^0.7.3"
,
"react-native-screens"
:
"~2.2.0"
,
"react-native-web"
:
"~0.11.7"
,
"react-navigation-stack"
:
"^2.3.13"
},
"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