-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fix inline code blocks for native platforms"
- Loading branch information
1 parent
d27cf29
commit 05fbe44
Showing
6 changed files
with
34 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable react/jsx-props-no-spreading */ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import inlineCodeBlockPropTypes from './inlineCodeBlockPropTypes'; | ||
|
||
const InlineCodeBlock = ({ | ||
TDefaultRenderer, | ||
defaultRendererProps, | ||
boxModelStyle, | ||
textStyle, | ||
}) => ( | ||
<View style={boxModelStyle}> | ||
<TDefaultRenderer style={textStyle} {...defaultRendererProps} /> | ||
</View> | ||
); | ||
|
||
InlineCodeBlock.propTypes = inlineCodeBlockPropTypes; | ||
InlineCodeBlock.displayName = 'InlineCodeBlock'; | ||
export default InlineCodeBlock; |
19 changes: 8 additions & 11 deletions
19
...omponents/InlineCodeBlock/index.native.js → src/components/InlineCodeBlock/index.ios.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters