Skip to content

Commit

Permalink
Updated react-native version of the example
Browse files Browse the repository at this point in the history
  • Loading branch information
priteshrnandgaonkar committed Nov 23, 2017
1 parent 023b37f commit dd25905
Show file tree
Hide file tree
Showing 4 changed files with 627 additions and 252 deletions.
2 changes: 1 addition & 1 deletion CallDetectionExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.45.1",
"react-native": "0.50.0",
"react-native-call-detection": "^1.4.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion CallDetectionExample/src/HomeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class HomeComponent extends Component {
var previousDS = this.state.ds
this.setState({ callStates: updatedCallStates, ds: previousDS.cloneWithRows(updatedCallStates)});
},
true, // if you want to read the phone number of the incoming call [ANDROID], otherwise false
false, // if you want to read the phone number of the incoming call [ANDROID], otherwise false
()=>{}, // callback if your permission got denied [ANDROID] [only if you want to read incoming number] default: console.error
{
title: 'Phone State Permission',
Expand Down
Loading

0 comments on commit dd25905

Please sign in to comment.