Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
react-native-fast-image
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
Administrator
react-native-fast-image
Commits
b8c82c7d
Commit
b8c82c7d
authored
Sep 23, 2018
by
Laurin Quast
Committed by
Dylan Vann
Sep 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow overwriting imageContainer styles.
Closes #286
parent
b18728db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/__snapshots__/index.test.js.snap
src/__snapshots__/index.test.js.snap
+6
-6
src/index.js
src/index.js
+2
-2
No files found.
src/__snapshots__/index.test.js.snap
View file @
b8c82c7d
...
@@ -5,11 +5,11 @@ exports[`FastImage renders correctly. 1`] = `
...
@@ -5,11 +5,11 @@ exports[`FastImage renders correctly. 1`] = `
style={
style={
Array [
Array [
Object {
Object {
"height": 44,
"overflow": "hidden",
"width": 44,
},
},
Object {
Object {
"overflow": "hidden",
"height": 44,
"width": 44,
},
},
]
]
}
}
...
@@ -43,11 +43,11 @@ exports[`Renders a normal Image when not passed a uri. 1`] = `
...
@@ -43,11 +43,11 @@ exports[`Renders a normal Image when not passed a uri. 1`] = `
style={
style={
Array [
Array [
Object {
Object {
"height": 44,
"overflow": "hidden",
"width": 44,
},
},
Object {
Object {
"overflow": "hidden",
"height": 44,
"width": 44,
},
},
]
]
}
}
...
...
src/index.js
View file @
b8c82c7d
...
@@ -39,7 +39,7 @@ class FastImage extends Component {
...
@@ -39,7 +39,7 @@ class FastImage extends Component {
if
(
fallback
)
{
if
(
fallback
)
{
return
(
return
(
<
View
<
View
style
=
{[
style
,
styles
.
imageContainer
]}
style
=
{[
style
s
.
imageContainer
,
style
]}
ref
=
{
this
.
captureRef
}
ref
=
{
this
.
captureRef
}
>
>
<
FastImageView
<
FastImageView
...
@@ -58,7 +58,7 @@ class FastImage extends Component {
...
@@ -58,7 +58,7 @@ class FastImage extends Component {
}
}
return
(
return
(
<
View
style
=
{[
style
,
styles
.
imageContainer
]}
ref
=
{
this
.
captureRef
}
>
<
View
style
=
{[
style
s
.
imageContainer
,
style
]}
ref
=
{
this
.
captureRef
}
>
<
FastImageView
<
FastImageView
{...
props
}
{...
props
}
style
=
{
StyleSheet
.
absoluteFill
}
style
=
{
StyleSheet
.
absoluteFill
}
...
...
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