İstanbul Büyük Şehir Belediyesi üzerinde kurulu mobil uygulamaların IBB Mobil Global servis üzerine erişmesine olanak sağlayan NPM Modulu
Bu modul ile uygulamanızın versiyon kontrolünü kolaylıkla sağlayabilirsiniz.
$ npm install ibb-mobile-services --save
$ react-native link ibb-mobile-services
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜ibb-mobile-services
and addRNIbbMobileServices.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNIbbMobileServices.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNIbbMobileServicesPackage;
to the imports at the top of the file - Add
new RNIbbMobileServicesPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':ibb-mobile-services' project(':ibb-mobile-services').projectDir = new File(rootProject.projectDir, '../node_modules/ibb-mobile-services/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':ibb-mobile-services')
import RNIbbMobileServices from 'ibb-mobile-services';
const App = () => {
// const message = useSelector((state) => state.message.message);
const config = {
url: "",//Bağlantı Noktası
port: "",//Bağlantı Portu
}
//application_uuid : "Uygulamanıza Global servis tarafından verilen uniq kodu ::UUID
return (<>
<IBB application_uuid={"1234-1234-1234-1234"} config={config} >
<Provider store={store}>
<AppNavigator />
</Provider>
</IBB>
</>
);
};
// TODO: What to do with the module?
RNIbbMobileServices;