react-native-simple-twitter
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -15,3 +15,3 @@ { | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz", | ||
"react-native-simple-twitter": "^1.0.1", | ||
"react-native-simple-twitter": "^1.1.0", | ||
"react-navigation": "^1.0.0-beta.21", | ||
@@ -24,2 +24,2 @@ "react-redux": "^5.0.6", | ||
} | ||
} | ||
} |
@@ -13,3 +13,3 @@ import React from 'react' | ||
/* import twitter */ | ||
import twitter, { TWLoginButton } from 'react-native-simple-twitter' | ||
import twitter, { TWLoginButton, decodeHTMLEntities } from 'react-native-simple-twitter' | ||
@@ -38,2 +38,4 @@ @connect( | ||
} | ||
console.log(decodeHTMLEntities("& ' ' / ' / < > "")) | ||
} | ||
@@ -40,0 +42,0 @@ |
@@ -0,4 +1,9 @@ | ||
/* client */ | ||
import Client from './src/client'; | ||
export default Client; | ||
export default Client; | ||
export TWLoginButton from './src/button'; | ||
/* components */ | ||
export TWLoginButton from './src/button'; | ||
/* other */ | ||
export { decodeHTMLEntities } from './src/lib'; |
{ | ||
"name": "react-native-simple-twitter", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Twitter API client for React Native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -209,2 +209,13 @@ # React-Native-Simple-Twitter | ||
* `twitter.get(endpoint,parameters)` - call twitter get api. | ||
* `twitter.post(endpoint,parameters)` - call twitter post api. | ||
* `twitter.post(endpoint,parameters)` - call twitter post api. | ||
## Other API | ||
* decodeHTMLEntities | ||
```js | ||
import { decodeHTMLEntities } from 'react-native-simple-twitter' | ||
console.log(decodeHTMLEntities("& ' ' / ' / < > "")) | ||
``` | ||
Tweet is include htmlencoded characters. | ||
So this function decode special characters. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1889342
26
678
220