$ npm install react-native-poker-stove-lib --save
$ react-native link react-native-poker-stove-lib
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-poker-stove-lib
and addRNPokerStoveLib.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNPokerStoveLib.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
TO DO
TO DO
import RNPokerStoveLib from 'react-native-poker-stove-lib';
// TODO: What to do with the module?
RNPokerStoveLib.calculateEquity("O","","7c5c4c3c", "5d4d3d2d",(error, result)=>{
console.log('RNPokerStoveLib result is', result)
})
Most of the time you might get error with h files not found or undefined symbols which is typically solved by providing correct header path in project->target->build settings-> Search Header Path
Currently we only tested omaha high
and we plan to support other.