Skip to content

A text component for React Native the style of words or phrases within

Notifications You must be signed in to change notification settings

JustinNothling/react-native-text-innerstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

react-native-text-innerstyle

A text component for React Native that allows for custom styling of a word or phrase within it's text

Install

react-native install react-native-text-innerstyle

Usage

import React, { Component } from 'react'
import TextInnerstyle from 'react-native-text-innerstyle'

class App extends Component {

  render(){
    return (
      <TextInnerstyle
        style={{fontSize:18, color:'blue'}}
        phrase={"random"}
        innerstyle={{color:'red'}}>
        This is some random text
      </TextInnerstyle>
    )
  }
}

Properties

Prop Default Type Description
style - object Specify the style of the TextInnerstyle, eg. color, fontSize...
phrase - string Specify the word or phrase you want to customize within your text.
innerstyle - object Specify the style of the word or phrase, eg. color, fontSize...

About

A text component for React Native the style of words or phrases within

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published